Skip to content

Commit

Permalink
Fix build & vet
Browse files Browse the repository at this point in the history
- fix `go vet` error
- fix build on Big Sur due to new security limits which impact
    logrus: sirupsen/logrus#1275
  • Loading branch information
synfinatic committed Sep 5, 2021
1 parent af67b90 commit ec30753
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ require (
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
github.com/synfinatic/gotable v0.0.1
golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a
// see: https://github.com/sirupsen/logrus/issues/1275
golang.org/x/sys v0.0.0-20210817190340-bfb29a6856f2 // indirect
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ golang.org/x/sys v0.0.0-20200909081042-eff7692f9009/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20200918174421-af09f7315aff/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f h1:+Nyd8tzPX9R7BWHguqsrbFdRx3WQ/1ib8I44HXV5yTA=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210817190340-bfb29a6856f2 h1:c8PlLMqBbOHoqtjteWm5/kbe6rNY2pbRfbIMVnepueo=
golang.org/x/sys v0.0.0-20210817190340-bfb29a6856f2/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
Expand Down
2 changes: 1 addition & 1 deletion sso/awssso.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ type RoleCredentials struct { // Cache
}

func (r *RoleCredentials) RoleArn() string {
return fmt.Sprintf("arn:aws:iam:%s:role/%s", r.AccountId, r.RoleName)
return fmt.Sprintf("arn:aws:iam:%d:role/%s", r.AccountId, r.RoleName)
}

func (r *RoleCredentials) ExpireString() string {
Expand Down

0 comments on commit ec30753

Please sign in to comment.