Update to Go 1.21 (#2796)

* Update Go build to 1.21.
* Update machine images to Ubuntu 22.04 current.

Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
Ben Kochie 2023-09-09 15:44:48 +02:00 committed by GitHub
parent 381f32b1c5
commit cda1d820bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -7,10 +7,10 @@ executors:
# should also be updated. # should also be updated.
golang: golang:
docker: docker:
- image: cimg/go:1.20 - image: cimg/go:1.21
arm: arm:
machine: machine:
image: ubuntu-2004:current image: ubuntu-2204:current
resource_class: arm.medium resource_class: arm.medium
jobs: jobs:
@ -42,7 +42,7 @@ jobs:
- run: git diff --exit-code - run: git diff --exit-code
build: build:
machine: machine:
image: ubuntu-2004:202101-01 image: ubuntu-2204:current
parallelism: 3 parallelism: 3
steps: steps:
- prometheus/setup_environment - prometheus/setup_environment
@ -58,7 +58,7 @@ jobs:
destination: /build destination: /build
test_docker: test_docker:
machine: machine:
image: ubuntu-2204:2022.04.2 image: ubuntu-2204:current
environment: environment:
DOCKER_TEST_IMAGE_NAME: quay.io/prometheus/golang-builder:1.18-base DOCKER_TEST_IMAGE_NAME: quay.io/prometheus/golang-builder:1.18-base
REPO_PATH: github.com/prometheus/node_exporter REPO_PATH: github.com/prometheus/node_exporter

View File

@ -1,7 +1,7 @@
go: go:
# Whenever the Go version is updated here, .circle/config.yml and # Whenever the Go version is updated here, .circle/config.yml and
# .promu.yml should also be updated. # .promu.yml should also be updated.
version: 1.20 version: 1.21
cgo: true cgo: true
repository: repository:
path: github.com/prometheus/node_exporter path: github.com/prometheus/node_exporter

View File

@ -1,7 +1,7 @@
go: go:
# Whenever the Go version is updated here, .circle/config.yml and # Whenever the Go version is updated here, .circle/config.yml and
# .promu-cgo.yml should also be updated. # .promu-cgo.yml should also be updated.
version: 1.20 version: 1.21
repository: repository:
path: github.com/prometheus/node_exporter path: github.com/prometheus/node_exporter
build: build: