Skip to content

Commit

Permalink
CI: Test with Go 1.17 (#287)
Browse files Browse the repository at this point in the history
Go 1.17 was released today. Test against it.

Go 1.17 includes a new format for specifying `// +build` constraints
`//go:build`. To aid in migrating to it, `gofmt` syncs these two.
  • Loading branch information
abhinav committed Aug 23, 2021
1 parent c2edd9b commit 467154f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
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 dig_go19_test.go
Original file line number Diff line number Diff line change
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 go1.9
// +build go1.9

package dig
Expand Down
1 change: 1 addition & 0 deletions tools_test.go
Original file line number Diff line number Diff line change
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 dig
Expand Down
1 change: 1 addition & 0 deletions utils_for_go19_test.go
Original file line number Diff line number Diff line change
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 go1.9
// +build go1.9

package dig
Expand Down
1 change: 1 addition & 0 deletions utils_for_pre_go19_test.go
Original file line number Diff line number Diff line change
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 !go1.9
// +build !go1.9

package dig
Expand Down

0 comments on commit 467154f

Please sign in to comment.