Skip to content

Commit

Permalink
Bump go version to 1.17 in go.mod/CI
Browse files Browse the repository at this point in the history
1.13 is sufficiently old at this point and net.ErrClosed from 1.16 will be nice
to use.

This change additionally runs go fmt to bring in the new 1.17 build tag syntax
and builds the binaries in our CI with 1.17+.

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
  • Loading branch information
dcantah committed Mar 31, 2022
1 parent 01a3671 commit e690f65
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.15.0'
go-version: '^1.17.0'

- run: go build ./pkg/etw/sample/
- run: go build ./tools/etw-provider-gen/
Expand Down
1 change: 1 addition & 0 deletions backup.go
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package winio
Expand Down
1 change: 1 addition & 0 deletions backup_test.go
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package winio
Expand Down
1 change: 1 addition & 0 deletions ea_test.go
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package winio
Expand Down
1 change: 1 addition & 0 deletions file.go
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package winio
Expand Down
1 change: 1 addition & 0 deletions fileinfo.go
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package winio
Expand Down
2 changes: 1 addition & 1 deletion go.mod
@@ -1,6 +1,6 @@
module github.com/Microsoft/go-winio

go 1.13
go 1.17

require (
github.com/sirupsen/logrus v1.7.0
Expand Down
1 change: 1 addition & 0 deletions hvsock.go
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package winio
Expand Down
1 change: 1 addition & 0 deletions pipe.go
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package winio
Expand Down
1 change: 1 addition & 0 deletions pipe_test.go
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package winio
Expand Down
1 change: 1 addition & 0 deletions privilege.go
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package winio
Expand Down
1 change: 1 addition & 0 deletions privileges_test.go
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package winio
Expand Down
1 change: 1 addition & 0 deletions sd.go
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package winio
Expand Down
1 change: 1 addition & 0 deletions sd_test.go
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package winio
Expand Down

0 comments on commit e690f65

Please sign in to comment.