Bump to Go 1.17

This commit is contained in:
bvanvugt 2022-01-10 22:25:46 +00:00
parent ba855a8ab1
commit e1ab986486
7 changed files with 33 additions and 13 deletions

View file

@ -18,7 +18,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: 1.17
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2

View file

@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@main
- uses: actions/setup-go@main
with:
go-version: '1.15'
go-version: '1.17'
- name: Run gofmt
run: test -z $(gofmt -l .) || (gofmt -d . && exit 1)
@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@main
- uses: actions/setup-go@main
with:
go-version: '1.15'
go-version: '1.17'
- name: Run golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.35.2
@ -37,7 +37,7 @@ jobs:
- uses: actions/checkout@main
- uses: actions/setup-go@main
with:
go-version: '1.15'
go-version: '1.17'
- name: Run go test
run: go test -race -coverprofile=coverage.txt ./...
- name: Upload coverage to codecov.io
@ -56,7 +56,7 @@ jobs:
- uses: actions/checkout@main
- uses: actions/setup-go@main
with:
go-version: '1.15'
go-version: '1.17'
- name: Run go build
run: |
go build ./cli/battlesnake

1
.gitignore vendored
View file

@ -1,5 +1,6 @@
# Editors
.cmd
.devcontainer
.vscode
.idea

View file

@ -14,12 +14,12 @@ This repo provides a simple CLI tool to run games locally against your dev envir
Download precompiled binaries here: <br>
[https://github.com/BattlesnakeOfficial/rules/releases](https://github.com/BattlesnakeOfficial/rules/releases)
Install as a Go package. Requires Go 1.15 or higher. [[Download](https://golang.org/dl/)]
Install as a Go package. Requires Go 1.17 or higher. [[Download](https://golang.org/dl/)]
```
go get github.com/BattlesnakeOfficial/rules/cli/battlesnake
```
Compile from source. Also requires Go 1.15 or higher.
Compile from source. Also requires Go 1.17 or higher.
```
git clone git@github.com:BattlesnakeOfficial/rules.git
cd rules

View file

@ -7,12 +7,12 @@ This tool allows running a Battlesnake game locally. There are several command-l
Download precompiled binaries here: <br>
[https://github.com/BattlesnakeOfficial/rules/releases](https://github.com/BattlesnakeOfficial/rules/releases)
Install as a Go package. Requires Go 1.15 or higher. [[Download](https://golang.org/dl/)]
Install as a Go package. Requires Go 1.17 or higher. [[Download](https://golang.org/dl/)]
```
go get github.com/BattlesnakeOfficial/rules/cli/battlesnake
```
Compile from source. Also requires Go 1.15 or higher.
Compile from source. Also requires Go 1.17 or higher.
```
git clone git@github.com:BattlesnakeOfficial/rules.git
cd rules

22
go.mod
View file

@ -1,6 +1,6 @@
module github.com/BattlesnakeOfficial/rules
go 1.15
go 1.17
require (
github.com/google/uuid v1.1.2
@ -9,3 +9,23 @@ require (
github.com/spf13/viper v1.7.1
github.com/stretchr/testify v1.4.0
)
require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fsnotify/fsnotify v1.4.7 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/magiconair/properties v1.8.1 // indirect
github.com/mitchellh/mapstructure v1.1.2 // indirect
github.com/pelletier/go-toml v1.2.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spf13/afero v1.1.2 // indirect
github.com/spf13/cast v1.3.0 // indirect
github.com/spf13/jwalterweatherman v1.0.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0 // indirect
golang.org/x/text v0.3.2 // indirect
gopkg.in/ini.v1 v1.51.0 // indirect
gopkg.in/yaml.v2 v2.2.8 // indirect
)

1
go.sum
View file

@ -177,7 +177,6 @@ github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5q
github.com/spf13/viper v1.7.1 h1:pM5oEahlgWv/WnHXpgbKz7iLIxRf65tye2Ci+XFK5sk=
github.com/spf13/viper v1.7.1/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1 h1:2vfRuCMp5sSVIDSqO8oNnWJq7mPa6KVP3iPIwFBuy8A=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=