Update Go to 1.23

* Update Go build to 1.23.
* Update minimum Go version to 1.22.

Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
SuperQ 2024-10-16 15:02:24 +02:00
parent 521b15ffdd
commit 42eb536084
No known key found for this signature in database
GPG Key ID: C646B23C9E3245F1
5 changed files with 6 additions and 8 deletions

View File

@ -2,7 +2,7 @@
version: 2.1 version: 2.1
orbs: orbs:
prometheus: prometheus/prometheus@0.17.1 prometheus: prometheus/prometheus@0.17.1
go: circleci/go@1.11.0 go: circleci/go@1.12.0
jobs: jobs:
test_frontend: test_frontend:
# We need to use a machine executor because the front-end validation runs # We need to use a machine executor because the front-end validation runs
@ -18,7 +18,7 @@ jobs:
command: sudo rm -rf /usr/local/go command: sudo rm -rf /usr/local/go
# Whenever the Go version is updated here, .promu.yml should also be updated. # Whenever the Go version is updated here, .promu.yml should also be updated.
- go/install: - go/install:
version: "1.22.6" version: "1.23.2"
- run: - run:
name: Remove generated code name: Remove generated code
command: make clean command: make clean

View File

@ -37,7 +37,7 @@ jobs:
# Whenever the Go version is updated here, .promu.yml # Whenever the Go version is updated here, .promu.yml
# should also be updated. # should also be updated.
container: container:
image: quay.io/prometheus/golang-builder:1.22-base image: quay.io/prometheus/golang-builder:1.23-base
steps: steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0 - uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0

View File

@ -14,7 +14,7 @@ jobs:
- name: install Go - name: install Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with: with:
go-version: 1.22.x go-version: 1.23.x
# pin the mixtool version until https://github.com/monitoring-mixins/mixtool/issues/135 is merged. # pin the mixtool version until https://github.com/monitoring-mixins/mixtool/issues/135 is merged.
- run: go install github.com/monitoring-mixins/mixtool/cmd/mixtool@2282201396b69055bb0f92f187049027a16d2130 - run: go install github.com/monitoring-mixins/mixtool/cmd/mixtool@2282201396b69055bb0f92f187049027a16d2130
- run: go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest - run: go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest

View File

@ -1,7 +1,7 @@
go: go:
# Whenever the Go version is updated here, # Whenever the Go version is updated here,
# .circle/config.yml should also be updated. # .circle/config.yml should also be updated.
version: 1.22 version: 1.23
repository: repository:
path: github.com/prometheus/alertmanager path: github.com/prometheus/alertmanager
build: build:

4
go.mod
View File

@ -1,8 +1,6 @@
module github.com/prometheus/alertmanager module github.com/prometheus/alertmanager
go 1.21.8 go 1.22
toolchain go1.22.4
require ( require (
github.com/KimMachineGun/automemlimit v0.6.1 github.com/KimMachineGun/automemlimit v0.6.1