chore: Update to go1.22.1 (#14940)

This commit is contained in:
Joshua Powers 2024-03-06 08:46:49 -07:00 committed by GitHub
parent 7adc32efcd
commit 8d8d1bfb4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 12 additions and 12 deletions

View File

@ -8,7 +8,7 @@ executors:
working_directory: '/go/src/github.com/influxdata/telegraf' working_directory: '/go/src/github.com/influxdata/telegraf'
resource_class: large resource_class: large
docker: docker:
- image: 'quay.io/influxdb/telegraf-ci:1.22.0' - image: 'quay.io/influxdb/telegraf-ci:1.22.1'
environment: environment:
GOFLAGS: -p=4 GOFLAGS: -p=4
mac: mac:

View File

@ -15,5 +15,5 @@ jobs:
- name: Scan for Vulnerabilities in Code - name: Scan for Vulnerabilities in Code
uses: golang/govulncheck-action@v1 uses: golang/govulncheck-action@v1
with: with:
go-version-input: 1.22.0 go-version-input: 1.22.1
go-package: ./... go-package: ./...

View File

@ -11,7 +11,7 @@ jobs:
steps: steps:
- uses: actions/setup-go@v5 - uses: actions/setup-go@v5
with: with:
go-version: '1.22.0' go-version: '1.22.1'
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0

View File

@ -249,8 +249,8 @@ plugins/parsers/influx/machine.go: plugins/parsers/influx/machine.go.rl
.PHONY: ci .PHONY: ci
ci: ci:
docker build -t quay.io/influxdb/telegraf-ci:1.22.0 - < scripts/ci.docker docker build -t quay.io/influxdb/telegraf-ci:1.22.1 - < scripts/ci.docker
docker push quay.io/influxdb/telegraf-ci:1.22.0 docker push quay.io/influxdb/telegraf-ci:1.22.1
.PHONY: install .PHONY: install
install: $(buildbin) install: $(buildbin)

View File

@ -1,4 +1,4 @@
FROM golang:1.22.0 FROM golang:1.22.1
RUN chmod -R 755 "$GOPATH" RUN chmod -R 755 "$GOPATH"

View File

@ -2,10 +2,10 @@
set -eux set -eux
GO_VERSION="1.22.0" GO_VERSION="1.22.1"
GO_ARCH="linux-amd64" GO_ARCH="linux-amd64"
# from https://golang.org/dl # from https://golang.org/dl
GO_VERSION_SHA="f6c8a87aa03b92c4b0bf3d558e28ea03006eb29db78917daec5cfb6ec1046265" GO_VERSION_SHA="aab8e15785c997ae20f9c88422ee35d962c4562212bb0f879d052a35c8307c7f"
# Download Go and verify Go tarball # Download Go and verify Go tarball
setup_go () { setup_go () {

View File

@ -3,9 +3,9 @@
set -eux set -eux
ARCH=$(uname -m) ARCH=$(uname -m)
GO_VERSION="1.22.0" GO_VERSION="1.22.1"
GO_VERSION_SHA_arm64="bf8e388b09134164717cd52d3285a4ab3b68691b80515212da0e9f56f518fb1e" # from https://golang.org/dl GO_VERSION_SHA_arm64="f6a9cec6b8a002fcc9c0ee24ec04d67f430a52abc3cfd613836986bcc00d8383" # from https://golang.org/dl
GO_VERSION_SHA_amd64="ebca81df938d2d1047cc992be6c6c759543cf309d401b86af38a6aed3d4090f4" # from https://golang.org/dl GO_VERSION_SHA_amd64="3bc971772f4712fec0364f4bc3de06af22a00a12daab10b6f717fdcd13156cc0" # from https://golang.org/dl
if [ "$ARCH" = 'arm64' ]; then if [ "$ARCH" = 'arm64' ]; then
GO_ARCH="darwin-arm64" GO_ARCH="darwin-arm64"

View File

@ -2,7 +2,7 @@
set -eux set -eux
GO_VERSION="1.22.0" GO_VERSION="1.22.1"
setup_go () { setup_go () {
choco upgrade golang --allow-downgrade --version=${GO_VERSION} choco upgrade golang --allow-downgrade --version=${GO_VERSION}