Skip to content

Commit

Permalink
chore: Update to go1.22.1 (#14940)
Browse files Browse the repository at this point in the history
  • Loading branch information
powersj committed Mar 6, 2024
1 parent 7adc32e commit 8d8d1bf
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ executors:
working_directory: '/go/src/github.com/influxdata/telegraf'
resource_class: large
docker:
- image: 'quay.io/influxdb/telegraf-ci:1.22.0'
- image: 'quay.io/influxdb/telegraf-ci:1.22.1'
environment:
GOFLAGS: -p=4
mac:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
- name: Scan for Vulnerabilities in Code
uses: golang/govulncheck-action@v1
with:
go-version-input: 1.22.0
go-version-input: 1.22.1
go-package: ./...
2 changes: 1 addition & 1 deletion .github/workflows/readme-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.22.0'
go-version: '1.22.1'
- uses: actions/checkout@v4
with:
fetch-depth: 0
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ plugins/parsers/influx/machine.go: plugins/parsers/influx/machine.go.rl

.PHONY: ci
ci:
docker build -t quay.io/influxdb/telegraf-ci:1.22.0 - < scripts/ci.docker
docker push quay.io/influxdb/telegraf-ci:1.22.0
docker build -t quay.io/influxdb/telegraf-ci:1.22.1 - < scripts/ci.docker
docker push quay.io/influxdb/telegraf-ci:1.22.1

.PHONY: install
install: $(buildbin)
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci.docker
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22.0
FROM golang:1.22.1

RUN chmod -R 755 "$GOPATH"

Expand Down
4 changes: 2 additions & 2 deletions scripts/installgo_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

set -eux

GO_VERSION="1.22.0"
GO_VERSION="1.22.1"
GO_ARCH="linux-amd64"
# from https://golang.org/dl
GO_VERSION_SHA="f6c8a87aa03b92c4b0bf3d558e28ea03006eb29db78917daec5cfb6ec1046265"
GO_VERSION_SHA="aab8e15785c997ae20f9c88422ee35d962c4562212bb0f879d052a35c8307c7f"

# Download Go and verify Go tarball
setup_go () {
Expand Down
6 changes: 3 additions & 3 deletions scripts/installgo_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
set -eux

ARCH=$(uname -m)
GO_VERSION="1.22.0"
GO_VERSION_SHA_arm64="bf8e388b09134164717cd52d3285a4ab3b68691b80515212da0e9f56f518fb1e" # from https://golang.org/dl
GO_VERSION_SHA_amd64="ebca81df938d2d1047cc992be6c6c759543cf309d401b86af38a6aed3d4090f4" # from https://golang.org/dl
GO_VERSION="1.22.1"
GO_VERSION_SHA_arm64="f6a9cec6b8a002fcc9c0ee24ec04d67f430a52abc3cfd613836986bcc00d8383" # from https://golang.org/dl
GO_VERSION_SHA_amd64="3bc971772f4712fec0364f4bc3de06af22a00a12daab10b6f717fdcd13156cc0" # from https://golang.org/dl

if [ "$ARCH" = 'arm64' ]; then
GO_ARCH="darwin-arm64"
Expand Down
2 changes: 1 addition & 1 deletion scripts/installgo_windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -eux

GO_VERSION="1.22.0"
GO_VERSION="1.22.1"

setup_go () {
choco upgrade golang --allow-downgrade --version=${GO_VERSION}
Expand Down

0 comments on commit 8d8d1bf

Please sign in to comment.