Skip to content

Commit

Permalink
all: go fmt ./...
Browse files Browse the repository at this point in the history
Make all our package sources use Go 1.17 gofmt format
(adding //go:build lines).

Not strictly necessary but will avoid spurious changes
as files are edited.

Part of //go:build change (#41184).
See https://golang.org/design/draft-gobuild

Change-Id: I22803ea9e936fbb08984a64155302f47e181de27
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/294420
Trust: Russ Cox <[email protected]>
Trust: Cody Oss <[email protected]>
Run-TryBot: Russ Cox <[email protected]>
TryBot-Result: Go Bot <[email protected]>
Reviewed-by: Cody Oss <[email protected]>
  • Loading branch information
rsc authored and codyoss committed Feb 20, 2021
1 parent ba52d33 commit 9bb9049
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions google/appengine_gen1.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build appengine
// +build appengine

// This file applies to App Engine first generation runtimes (<= Go 1.9).
Expand Down
1 change: 1 addition & 0 deletions google/appengine_gen2_flex.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !appengine
// +build !appengine

// This file applies to App Engine second generation runtimes (>= Go 1.11) and App Engine flexible.
Expand Down
2 changes: 1 addition & 1 deletion google/internal/externalaccount/basecredentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (c *Config) TokenSource(ctx context.Context) oauth2.TokenSource {
ctx: ctx,
url: c.ServiceAccountImpersonationURL,
scopes: scopes,
ts: oauth2.ReuseTokenSource(nil, ts),
ts: oauth2.ReuseTokenSource(nil, ts),
}
return oauth2.ReuseTokenSource(nil, imp)
}
Expand Down
4 changes: 2 additions & 2 deletions google/internal/externalaccount/urlcredsource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ func TestRetrieveURLSubjectToken_Text(t *testing.T) {
heads := make(map[string]string)
heads["Metadata"] = "True"
cs := CredentialSource{
URL: ts.URL,
Format: format{Type: fileTypeText},
URL: ts.URL,
Format: format{Type: fileTypeText},
Headers: heads,
}
tfc := testFileConfig
Expand Down
1 change: 1 addition & 0 deletions internal/client_appengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build appengine
// +build appengine

package internal
Expand Down

0 comments on commit 9bb9049

Please sign in to comment.