Skip to content

Commit 5d45895

Browse files
authored
Update Go to 1.24 (#3273)
* Update Go to 1.24 for all builds. * Update minimum Go version to 1.23. * Bump procfs library. Signed-off-by: Ben Kochie <[email protected]>
1 parent 0c10545 commit 5d45895

File tree

6 files changed

+31
-31
lines changed

6 files changed

+31
-31
lines changed

.circleci/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ executors:
77
# should also be updated.
88
golang:
99
docker:
10-
- image: cimg/go:1.23
10+
- image: cimg/go:1.24
1111
arm:
1212
docker:
13-
- image: cimg/go:1.23
13+
- image: cimg/go:1.24
1414
resource_class: arm.medium
1515

1616
jobs:
@@ -42,7 +42,7 @@ jobs:
4242
- run: git diff --exit-code
4343
build:
4444
machine:
45-
image: ubuntu-2204:current
45+
image: ubuntu-2404:current
4646
parallelism: 3
4747
steps:
4848
- prometheus/setup_environment
@@ -68,9 +68,9 @@ jobs:
6868
destination: /build
6969
test_docker:
7070
machine:
71-
image: ubuntu-2204:current
71+
image: ubuntu-2404:current
7272
environment:
73-
DOCKER_TEST_IMAGE_NAME: quay.io/prometheus/golang-builder:1.23-base
73+
DOCKER_TEST_IMAGE_NAME: quay.io/prometheus/golang-builder:1.24-base
7474
REPO_PATH: github.com/prometheus/node_exporter
7575
steps:
7676
- prometheus/setup_environment

.github/workflows/bsd.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ permissions:
1313

1414
env:
1515
GNU_TAR_VERSION: "1.35"
16-
GO_VERSION_DRAGONFLY: "1.23.3"
16+
GO_VERSION_DRAGONFLY: "1.24.1"
1717
GO_VERSION_FREEBSD: "123"
18-
GO_VERSION_NETBSD: "1.23.3"
18+
GO_VERSION_NETBSD: "1.24.1"
1919
GO_VERSION_OPENBSD: "1.23.1"
20-
GO_VERSION_SOLARIS: "1.23.3"
20+
GO_VERSION_SOLARIS: "1.24.1"
2121

2222
# To spin up one of the VMs below, see the "Debug Shell" section here: https://github.com/vmactions
2323
jobs:
@@ -26,9 +26,9 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Checkout the repository
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3030
- name: test-e2e
31-
uses: vmactions/freebsd-vm@v1
31+
uses: vmactions/freebsd-vm@8873d98fd1413b5977cb2f7348fe329775159892 # v1.1.9
3232
with:
3333
copyback: false
3434
envs: 'GO_VERSION_FREEBSD GNU_TAR_VERSION'
@@ -73,9 +73,9 @@ jobs:
7373
runs-on: ubuntu-latest
7474
steps:
7575
- name: Checkout the repository
76-
uses: actions/checkout@v4
76+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7777
- name: test-e2e
78-
uses: vmactions/openbsd-vm@v1
78+
uses: vmactions/openbsd-vm@7ac70b6de6f33efc74a90c1964afa3bcf0ee4401 # v1.1.6
7979
with:
8080
copyback: false
8181
envs: 'GO_VERSION_OPENBSD GNU_TAR_VERSION'
@@ -119,9 +119,9 @@ jobs:
119119
runs-on: ubuntu-latest
120120
steps:
121121
- name: Checkout the repository
122-
uses: actions/checkout@v4
122+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
123123
- name: test-e2e
124-
uses: vmactions/netbsd-vm@v1
124+
uses: vmactions/netbsd-vm@46a58bbf03682b4cb24142b97fa315ae52bed573 # v1.1.8
125125
with:
126126
copyback: false
127127
envs: 'GO_VERSION_NETBSD GNU_TAR_VERSION'
@@ -167,9 +167,9 @@ jobs:
167167
runs-on: ubuntu-latest
168168
steps:
169169
- name: Checkout the repository
170-
uses: actions/checkout@v4
170+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
171171
- name: test-e2e
172-
uses: vmactions/dragonflybsd-vm@v1
172+
uses: vmactions/dragonflybsd-vm@e3c420e8a2362c2496fca6e76a291abd46f5d8e7 # v1.1.0
173173
with:
174174
copyback: false
175175
envs: 'GO_VERSION_DRAGONFLY'
@@ -217,9 +217,9 @@ jobs:
217217
runs-on: ubuntu-latest
218218
steps:
219219
- name: Checkout the repository
220-
uses: actions/checkout@v4
220+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
221221
- name: test-e2e
222-
uses: vmactions/solaris-vm@v1
222+
uses: vmactions/solaris-vm@cc8f82fa1a7cc746153ec3f71bf11f311f16e225 # v1.1.1
223223
with:
224224
copyback: false
225225
envs: 'GO_VERSION_SOLARIS'
@@ -276,7 +276,7 @@ jobs:
276276
runs-on: macos-latest
277277
steps:
278278
- name: Checkout the repository
279-
uses: actions/checkout@v4
279+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
280280
- name: Install dependencies
281281
run: |
282282
brew install \

.promu-cgo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
go:
22
# Whenever the Go version is updated here, .circle/config.yml and
33
# .promu.yml should also be updated.
4-
version: 1.23
4+
version: 1.24
55
cgo: true
66
repository:
77
path: github.com/prometheus/node_exporter

.promu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
go:
22
# Whenever the Go version is updated here, .circle/config.yml and
33
# .promu-cgo.yml should also be updated.
4-
version: 1.23
4+
version: 1.24
55
repository:
66
path: github.com/prometheus/node_exporter
77
build:

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/prometheus/node_exporter
22

3-
go 1.22.0
3+
go 1.23.0
44

55
require (
66
github.com/alecthomas/kingpin/v2 v2.4.0
@@ -26,7 +26,7 @@ require (
2626
github.com/prometheus/client_model v0.6.1
2727
github.com/prometheus/common v0.62.0
2828
github.com/prometheus/exporter-toolkit v0.14.0
29-
github.com/prometheus/procfs v0.15.2-0.20240603130017-1754b780536b // == v0.15.1 + https://github.com/prometheus/procfs/commit/1754b780536bb81082baa913e04cc4fff4d2baea
29+
github.com/prometheus/procfs v0.16.0
3030
github.com/safchain/ethtool v0.5.10
3131
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0
3232
golang.org/x/sys v0.30.0
@@ -38,7 +38,7 @@ require (
3838
github.com/beorn7/perks v1.0.1 // indirect
3939
github.com/cespare/xxhash/v2 v2.3.0 // indirect
4040
github.com/dennwc/ioctl v1.0.0 // indirect
41-
github.com/google/go-cmp v0.6.0 // indirect
41+
github.com/google/go-cmp v0.7.0 // indirect
4242
github.com/jpillora/backoff v1.0.0 // indirect
4343
github.com/klauspost/compress v1.17.9 // indirect
4444
github.com/kylelemons/godebug v1.1.0 // indirect
@@ -54,7 +54,7 @@ require (
5454
golang.org/x/crypto v0.32.0 // indirect
5555
golang.org/x/net v0.33.0 // indirect
5656
golang.org/x/oauth2 v0.24.0 // indirect
57-
golang.org/x/sync v0.10.0 // indirect
57+
golang.org/x/sync v0.11.0 // indirect
5858
golang.org/x/text v0.21.0 // indirect
5959
google.golang.org/protobuf v1.36.1 // indirect
6060
gopkg.in/yaml.v2 v2.4.0 // indirect

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ github.com/ema/qdisc v1.0.0/go.mod h1:FhIc0fLYi7f+lK5maMsesDqwYojIOh3VfRs8EVd5YJ
2424
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
2525
github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk=
2626
github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
27-
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
28-
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
27+
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
28+
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
2929
github.com/hashicorp/go-envparse v0.1.0 h1:bE++6bhIsNCPLvgDZkYqo3nA+/PFI51pkrHdmPSDFPY=
3030
github.com/hashicorp/go-envparse v0.1.0/go.mod h1:OHheN1GoygLlAkTlXLXvAdnXdZxy8JUweQ1rAXx1xnc=
3131
github.com/hodgesds/perf-utils v0.7.0 h1:7KlHGMuig4FRH5fNw68PV6xLmgTe7jKs9hgAcEAbioU=
@@ -83,8 +83,8 @@ github.com/prometheus/common v0.62.0 h1:xasJaQlnWAeyHdUBeGjXmutelfJHWMRr+Fg4QszZ
8383
github.com/prometheus/common v0.62.0/go.mod h1:vyBcEuLSvWos9B1+CyL7JZ2up+uFzXhkqml0W5zIY1I=
8484
github.com/prometheus/exporter-toolkit v0.14.0 h1:NMlswfibpcZZ+H0sZBiTjrA3/aBFHkNZqE+iCj5EmRg=
8585
github.com/prometheus/exporter-toolkit v0.14.0/go.mod h1:Gu5LnVvt7Nr/oqTBUC23WILZepW0nffNo10XdhQcwWA=
86-
github.com/prometheus/procfs v0.15.2-0.20240603130017-1754b780536b h1:4EJkx3vycI+n5JY5ht+bnSUGamkmmXkpcNeO/OBT/0A=
87-
github.com/prometheus/procfs v0.15.2-0.20240603130017-1754b780536b/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk=
86+
github.com/prometheus/procfs v0.16.0 h1:xh6oHhKwnOJKMYiYBDWmkHqQPyiY40sny36Cmx2bbsM=
87+
github.com/prometheus/procfs v0.16.0/go.mod h1:8veyXUu3nGP7oaCxhX6yeaM5u4stL2FeMXnCqhDthZg=
8888
github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ=
8989
github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog=
9090
github.com/safchain/ethtool v0.5.10 h1:Im294gZtuf4pSGJRAOGKaASNi3wMeFaGaWuSaomedpc=
@@ -110,8 +110,8 @@ golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=
110110
golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=
111111
golang.org/x/oauth2 v0.24.0 h1:KTBBxWqUa0ykRPLtV69rRto9TLXcqYkeswu48x/gvNE=
112112
golang.org/x/oauth2 v0.24.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
113-
golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ=
114-
golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
113+
golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w=
114+
golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
115115
golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
116116
golang.org/x/sys v0.0.0-20211031064116-611d5d643895/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
117117
golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=

0 commit comments

Comments
 (0)