From cda1d820bb7e913759c22b8e4795eff70f0e442a Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Sat, 9 Sep 2023 15:44:48 +0200 Subject: [PATCH] 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 --- .circleci/config.yml | 8 ++++---- .promu-cgo.yml | 2 +- .promu.yml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d6e6b870..ab00b232 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,10 +7,10 @@ executors: # should also be updated. golang: docker: - - image: cimg/go:1.20 + - image: cimg/go:1.21 arm: machine: - image: ubuntu-2004:current + image: ubuntu-2204:current resource_class: arm.medium jobs: @@ -42,7 +42,7 @@ jobs: - run: git diff --exit-code build: machine: - image: ubuntu-2004:202101-01 + image: ubuntu-2204:current parallelism: 3 steps: - prometheus/setup_environment @@ -58,7 +58,7 @@ jobs: destination: /build test_docker: machine: - image: ubuntu-2204:2022.04.2 + image: ubuntu-2204:current environment: DOCKER_TEST_IMAGE_NAME: quay.io/prometheus/golang-builder:1.18-base REPO_PATH: github.com/prometheus/node_exporter diff --git a/.promu-cgo.yml b/.promu-cgo.yml index 975c6e32..d6f82529 100644 --- a/.promu-cgo.yml +++ b/.promu-cgo.yml @@ -1,7 +1,7 @@ go: # Whenever the Go version is updated here, .circle/config.yml and # .promu.yml should also be updated. - version: 1.20 + version: 1.21 cgo: true repository: path: github.com/prometheus/node_exporter diff --git a/.promu.yml b/.promu.yml index f37f8502..d0a66635 100644 --- a/.promu.yml +++ b/.promu.yml @@ -1,7 +1,7 @@ go: # Whenever the Go version is updated here, .circle/config.yml and # .promu-cgo.yml should also be updated. - version: 1.20 + version: 1.21 repository: path: github.com/prometheus/node_exporter build: