Skip to content

Commit

Permalink
fix(darwin): build broken on darwin since Go 1.18 (#357)
Browse files Browse the repository at this point in the history
* fix(darwin): build broken on darwin since Go 1.18

See golang/go#49219

Signed-off-by: Simon Delberghe <open-source@orandin.fr>

* chore(lint): nolintlint

Signed-off-by: Romain Beuque <556072+rbeuque74@users.noreply.github.com>

Signed-off-by: Simon Delberghe <open-source@orandin.fr>
Signed-off-by: Romain Beuque <556072+rbeuque74@users.noreply.github.com>
Co-authored-by: Romain Beuque <556072+rbeuque74@users.noreply.github.com>
  • Loading branch information
orandin and rbeuque74 authored Aug 17, 2022
1 parent 8c0e900 commit 4ef80c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ require (
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
golang.org/x/net v0.0.0-20201224014010-6772e930b67b
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab // indirect
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
gopkg.in/ini.v1 v1.46.0 // indirect
Expand Down
3 changes: 2 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,9 @@ golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 h1:nxC68pudNYkKU6jWhgrqdreuFiOQWj1Fs7T3VrH4Pjw=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab h1:2QkjZIsXupsJbJIdSjjUOgWK3aEtzyuh2mPt3l/CkeU=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
Expand Down
4 changes: 2 additions & 2 deletions pkg/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ var (

// WithIdentity adds identity data to a context
func WithIdentity(ctx context.Context, id string) context.Context {
return context.WithValue(ctx, IdentityProviderCtxKey, id) // nolint
return context.WithValue(ctx, IdentityProviderCtxKey, id) //nolint
}

// WithIdentity adds identity data to a context
func WithGroups(ctx context.Context, groups []string) context.Context {
return context.WithValue(ctx, GroupProviderCtxKey, groups) // nolint
return context.WithValue(ctx, GroupProviderCtxKey, groups) //nolint
}

// Init reads authorization from configstore, bootstraps values
Expand Down

0 comments on commit 4ef80c2

Please sign in to comment.