Skip to content

Commit

Permalink
CI: Test with Go 1.17 (#1009)
Browse files Browse the repository at this point in the history
Add Go 1.17 to the list of versions we test with. `gofmt` all files to
add the new `//go:build` directives meant to replace `// +build`.

This supersedes the Go version upgrade in #999. That PR will be narrowed
down just to Windows support.
  • Loading branch information
abhinav committed Sep 10, 2021
1 parent 7011157 commit a0e2380
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Expand Up @@ -13,9 +13,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.15.x", "1.16.x"]
go: ["1.15.x", "1.16.x", "1.17.x"]
include:
- go: 1.16.x
- go: 1.17.x
latest: true

steps:
Expand Down
1 change: 1 addition & 0 deletions global_go112.go
Expand Up @@ -19,6 +19,7 @@
// THE SOFTWARE.

// See #682 for more information.
//go:build go1.12
// +build go1.12

package zap
Expand Down
1 change: 1 addition & 0 deletions global_prego112.go
Expand Up @@ -19,6 +19,7 @@
// THE SOFTWARE.

// See #682 for more information.
//go:build !go1.12
// +build !go1.12

package zap
Expand Down
1 change: 1 addition & 0 deletions tools/tools.go
Expand Up @@ -18,6 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

//go:build tools
// +build tools

package tools
Expand Down

0 comments on commit a0e2380

Please sign in to comment.