diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 3c9c4b0..33c4568 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -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
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 8e203e7..7d8b6cd 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -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
diff --git a/.gitignore b/.gitignore
index bee1ebf..089e7fe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,11 +1,12 @@
# Editors
.cmd
+.devcontainer
.vscode
.idea
# General
.DS_Store
-# Build and Output
+# Build and Output
/battlesnake
-*.jsonl
\ No newline at end of file
+*.jsonl
diff --git a/README.md b/README.md
index 791062c..1ca6033 100644
--- a/README.md
+++ b/README.md
@@ -14,12 +14,12 @@ This repo provides a simple CLI tool to run games locally against your dev envir
Download precompiled binaries here:
[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
diff --git a/cli/README.md b/cli/README.md
index cc8d8fb..c4465f8 100644
--- a/cli/README.md
+++ b/cli/README.md
@@ -7,12 +7,12 @@ This tool allows running a Battlesnake game locally. There are several command-l
Download precompiled binaries here:
[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
diff --git a/go.mod b/go.mod
index 063f9a2..892e8f2 100644
--- a/go.mod
+++ b/go.mod
@@ -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
+)
diff --git a/go.sum b/go.sum
index 5d88b1e..b2b5e67 100644
--- a/go.sum
+++ b/go.sum
@@ -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=