forked from influxdata/telegraf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Go version 1.16 (influxdata#8882)
* Support 1.16 * Use 1.16 in mod file * update go.sum * update go.mod after updating to 1.16 locally * Fix go vet * Remove exit * Use require.NoError * Only run tidy explicitly in "dep" job * install 1.16 for go * typo * update xcode * specific version not working * Get 1.16 go formula * Change brew call * brew update * typo * Resolve go.sum conflict * go mod tidy
- Loading branch information
Showing
9 changed files
with
47 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,21 +3,21 @@ orbs: | |
win: circleci/[email protected] | ||
|
||
executors: | ||
go-1_14: | ||
go-1_15: | ||
working_directory: '/go/src/github.com/influxdata/telegraf' | ||
docker: | ||
- image: 'quay.io/influxdb/telegraf-ci:1.14.9' | ||
- image: 'quay.io/influxdb/telegraf-ci:1.15.8' | ||
environment: | ||
GOFLAGS: -p=8 | ||
go-1_15: | ||
go-1_16: | ||
working_directory: '/go/src/github.com/influxdata/telegraf' | ||
docker: | ||
- image: 'quay.io/influxdb/telegraf-ci:1.15.8' | ||
- image: 'quay.io/influxdb/telegraf-ci:1.16.0' | ||
environment: | ||
GOFLAGS: -p=8 | ||
mac: | ||
macos: | ||
xcode: 12.1.0 | ||
xcode: 12.4.0 | ||
working_directory: '~/go/src/github.com/influxdata/telegraf' | ||
environment: | ||
HOMEBREW_NO_AUTO_UPDATE: 1 | ||
|
@@ -72,15 +72,15 @@ commands: | |
- 'dist' | ||
jobs: | ||
linter: | ||
executor: go-1_15 | ||
executor: go-1_16 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: go-mod-v1-{{ checksum "go.sum" }} | ||
- run: wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.37.0 | ||
- run: make lint | ||
deps: | ||
executor: go-1_15 | ||
executor: go-1_16 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
|
@@ -102,7 +102,8 @@ jobs: | |
- checkout | ||
- restore_cache: | ||
key: mac-go-mod-v2-{{ checksum "go.sum" }} | ||
- run: 'brew install go' # latest | ||
- run: 'brew update' | ||
- run: 'brew install [email protected]' | ||
- run: 'make deps' | ||
- run: 'make tidy' | ||
- save_cache: | ||
|
@@ -120,21 +121,21 @@ jobs: | |
- 'usr/local/Cellar/go' | ||
- 'usr/local/bin/gofmt' | ||
- 'Users/distiller/go' | ||
test-go-1_14: | ||
executor: go-1_14 | ||
test-go-1_15: | ||
executor: go-1_15 | ||
steps: | ||
- test-go | ||
test-go-1_14-386: | ||
executor: go-1_14 | ||
test-go-1_15-386: | ||
executor: go-1_15 | ||
steps: | ||
- test-go: | ||
goarch: "386" | ||
test-go-1_15: | ||
executor: go-1_15 | ||
test-go-1_16: | ||
executor: go-1_16 | ||
steps: | ||
- test-go | ||
test-go-1_15-386: | ||
executor: go-1_15 | ||
test-go-1_16-386: | ||
executor: go-1_16 | ||
steps: | ||
- test-go: | ||
goarch: "386" | ||
|
@@ -154,15 +155,15 @@ jobs: | |
- run: make test-windows | ||
|
||
package: | ||
executor: go-1_15 | ||
executor: go-1_16 | ||
steps: | ||
- package | ||
release: | ||
executor: go-1_15 | ||
executor: go-1_16 | ||
steps: | ||
- package | ||
nightly: | ||
executor: go-1_15 | ||
executor: go-1_16 | ||
steps: | ||
- package: | ||
nightly: true | ||
|
@@ -217,25 +218,25 @@ workflows: | |
filters: | ||
tags: | ||
only: /.*/ | ||
- 'test-go-1_14': | ||
- 'test-go-1_15': | ||
requires: | ||
- 'deps' | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- 'test-go-1_14-386': | ||
- 'test-go-1_15-386': | ||
requires: | ||
- 'deps' | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- 'test-go-1_15': | ||
- 'test-go-1_16': | ||
requires: | ||
- 'deps' | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- 'test-go-1_15-386': | ||
- 'test-go-1_16-386': | ||
requires: | ||
- 'deps' | ||
filters: | ||
|
@@ -255,18 +256,18 @@ workflows: | |
requires: | ||
- 'test-go-windows' | ||
- 'test-go-darwin' | ||
- 'test-go-1_14' | ||
- 'test-go-1_14-386' | ||
- 'test-go-1_15' | ||
- 'test-go-1_15-386' | ||
- 'test-go-1_16' | ||
- 'test-go-1_16-386' | ||
- 'release': | ||
requires: | ||
- 'test-go-windows' | ||
- 'test-go-darwin' | ||
- 'test-go-1_14' | ||
- 'test-go-1_14-386' | ||
- 'test-go-1_15' | ||
- 'test-go-1_15-386' | ||
- 'test-go-1_16' | ||
- 'test-go-1_16-386' | ||
filters: | ||
tags: | ||
only: /.*/ | ||
|
@@ -289,16 +290,16 @@ workflows: | |
- 'linter' | ||
- 'deps' | ||
- 'macdeps' | ||
- 'test-go-1_14': | ||
- 'test-go-1_15': | ||
requires: | ||
- 'deps' | ||
- 'test-go-1_14-386': | ||
- 'test-go-1_15-386': | ||
requires: | ||
- 'deps' | ||
- 'test-go-1_15': | ||
- 'test-go-1_16': | ||
requires: | ||
- 'deps' | ||
- 'test-go-1_15-386': | ||
- 'test-go-1_16-386': | ||
requires: | ||
- 'deps' | ||
- 'test-go-darwin': | ||
|
@@ -309,10 +310,10 @@ workflows: | |
requires: | ||
- 'test-go-windows' | ||
- 'test-go-darwin' | ||
- 'test-go-1_14' | ||
- 'test-go-1_14-386' | ||
- 'test-go-1_15' | ||
- 'test-go-1_15-386' | ||
- 'test-go-1_16' | ||
- 'test-go-1_16-386' | ||
triggers: | ||
- schedule: | ||
cron: "0 7 * * *" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.14.9 | ||
FROM golang:1.16.0 | ||
|
||
RUN chmod -R 755 "$GOPATH" | ||
|
||
|