@cryptotaxi247 / netdata-1 / commits / c0f688250

build(deps): update go toolchain to v1.24.2 (#20176)

* build(deps): update go toolchain to v1.24.2 * 1.23.4

Ilya Mashchenko committed Apr 24, 2025 at 15:32 UTC c0f6882505adf11b3a286b1253c97f58939f37d7
5 files changed +39 -33
.github/workflows/build.yml
+1 -1
@@ -376,7 +376,7 @@ jobs:
376 if: needs.file-check.outputs.run == 'true'
377 uses: actions/setup-go@v5
378 with:
379 - go-version: "^1.23"
379 + go-version: "^1.24"
380 - name: Set Up Dependencies
381 id: deps
382 if: needs.file-check.outputs.run == 'true'
netdata.spec.in
+2 -2
@@ -271,9 +271,9 @@ BuildRequires: cups-devel
271 # distro handling of versioning).
272 %if %{?_upstream_go_toolchain:0}%{!?_upstream_go_toolchain:1}
273 %if 0%{?suse_version}
274 -BuildRequires: go >= 1.23
274 +BuildRequires: go >= 1.24
275 %else
276 -BuildRequires: golang >= 1.23
276 +BuildRequires: golang >= 1.24
277 %endif
278 %endif
279 # end - go.d.plugin plugin dependencies
packaging/check-for-go-toolchain.sh
+26 -26
@@ -12,8 +12,8 @@
12 # GOLANG_FAILURE_REASON set to an error message indicating what went wrong.
13
14 GOLANG_MIN_MAJOR_VERSION='1'
15 -GOLANG_MIN_MINOR_VERSION='23'
16 -GOLANG_MIN_PATCH_VERSION='6'
15 +GOLANG_MIN_MINOR_VERSION='24'
16 +GOLANG_MIN_PATCH_VERSION='2'
17 GOLANG_MIN_VERSION="${GOLANG_MIN_MAJOR_VERSION}.${GOLANG_MIN_MINOR_VERSION}.${GOLANG_MIN_PATCH_VERSION}"
18
19 GOLANG_TEMP_PATH="${TMPDIR}/go-toolchain"
@@ -51,32 +51,32 @@ install_go_toolchain() {
51 Linux)
52 case "$(uname -m)" in
53 i?86)
54 - GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.23.6.linux-386.tar.gz"
55 - GOLANG_ARCHIVE_CHECKSUM="e61f87693169c0bbcc43363128f1e929b9dff0b7f448573f1bdd4e4a0b9687ba"
54 + GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.24.2.linux-386.tar.gz"
55 + GOLANG_ARCHIVE_CHECKSUM="4c382776d52313266f3026236297a224a6688751256a2dffa3f524d8d6f6c0ba"
56 ;;
57 x86_64)
58 - GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.23.6.linux-amd64.tar.gz"
59 - GOLANG_ARCHIVE_CHECKSUM="9379441ea310de000f33a4dc767bd966e72ab2826270e038e78b2c53c2e7802d"
58 + GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.24.2.linux-amd64.tar.gz"
59 + GOLANG_ARCHIVE_CHECKSUM="68097bd680839cbc9d464a0edce4f7c333975e27a90246890e9f1078c7e702ad"
60 ;;
61 aarch64)
62 - GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.23.6.linux-arm64.tar.gz"
63 - GOLANG_ARCHIVE_CHECKSUM="561c780e8f4a8955d32bf72e46af0b5ee5e0debe1e4633df9a03781878219202"
62 + GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.24.2.linux-arm64.tar.gz"
63 + GOLANG_ARCHIVE_CHECKSUM="756274ea4b68fa5535eb9fe2559889287d725a8da63c6aae4d5f23778c229f4b"
64 ;;
65 armv*)
66 - GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.23.6.linux-armv6l.tar.gz"
67 - GOLANG_ARCHIVE_CHECKSUM="27a4611010c16b8c4f37ade3aada55bd5781998f02f348b164302fd5eea4eb74"
66 + GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.24.2.linux-armv6l.tar.gz"
67 + GOLANG_ARCHIVE_CHECKSUM="438d5d3d7dcb239b58d893a715672eabe670b9730b1fd1c8fc858a46722a598a"
68 ;;
69 ppc64le)
70 - GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.23.6.linux-ppc64le.tar.gz"
71 - GOLANG_ARCHIVE_CHECKSUM="0f817201e83d78ddbfa27f5f78d9b72450b92cc21d5e045145efacd0d3244a99"
70 + GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.24.2.linux-ppc64le.tar.gz"
71 + GOLANG_ARCHIVE_CHECKSUM="5fff857791d541c71d8ea0171c73f6f99770d15ff7e2ad979104856d01f36563"
72 ;;
73 riscv64)
74 - GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.23.6.linux-riscv64.tar.gz"
75 - GOLANG_ARCHIVE_CHECKSUM="f95f7f817ab22ecab4503d0704d6449ea1aa26a595f57bf9b9f94ddf2aa7c1f3"
74 + GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.24.2.linux-riscv64.tar.gz"
75 + GOLANG_ARCHIVE_CHECKSUM="91bda1558fcbd1c92769ad86c8f5cf796f8c67b0d9d9c19f76eecfc75ce71527"
76 ;;
77 s390x)
78 - GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.23.6.linux-s390x.tar.gz"
79 - GOLANG_ARCHIVE_CHECKSUM="321e7ed0d5416f731479c52fa7610b52b8079a8061967bd48cec6d66f671a60e"
78 + GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.24.2.linux-s390x.tar.gz"
79 + GOLANG_ARCHIVE_CHECKSUM="1cb3448166d6abb515a85a3ee5afbdf932081fb58ad7143a8fb666fbc06146d9"
80 ;;
81 *)
82 GOLANG_FAILURE_REASON="Linux $(uname -m) platform is not supported out-of-box by Go, you must install a toolchain for it yourself."
@@ -87,24 +87,24 @@ install_go_toolchain() {
87 FreeBSD)
88 case "$(uname -m)" in
89 386)
90 - GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.23.6.freebsd-386.tar.gz"
91 - GOLANG_ARCHIVE_CHECKSUM="d3287706b5823712ac6cf7dff684a556cff98163ef60e7b275abe3388c17aac7"
90 + GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.24.2.freebsd-386.tar.gz"
91 + GOLANG_ARCHIVE_CHECKSUM="026f1dd906189acff714c7625686bbc4ed91042618ba010d45b671461acc9e63"
92 ;;
93 amd64)
94 - GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.23.6.freebsd-amd64.tar.gz"
95 - GOLANG_ARCHIVE_CHECKSUM="ebb4c6a9b0673dbdabc439877779ed6add16575e21bd0a7955c33f692789aef6"
94 + GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.24.2.freebsd-amd64.tar.gz"
95 + GOLANG_ARCHIVE_CHECKSUM="49399ba759b570a8f87d12179133403da6c2dd296d63a8830dee309161b9c40c"
96 ;;
97 arm)
98 - GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.23.6.freebsd-arm.tar.gz"
99 - GOLANG_ARCHIVE_CHECKSUM="b7241584afb0b161c09148f8fde16171bb743e47b99d451fbc5f5217ec7a88b6"
98 + GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.24.2.freebsd-arm.tar.gz"
99 + GOLANG_ARCHIVE_CHECKSUM="1f48f47183794d97c29736004247ab541177cf984ac6322c78bc43828daa1172"
100 ;;
101 arm64)
102 - GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.23.6.freebsd-arm64.tar.gz"
103 - GOLANG_ARCHIVE_CHECKSUM="004718b53cedd7955d1b1dc4053539fcd1053c031f5f3374334a22befd1f8310"
102 + GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.24.2.freebsd-arm64.tar.gz"
103 + GOLANG_ARCHIVE_CHECKSUM="ef856428b60a8c0bd9a2cba596e83024be6f1c2d5574e89cb1ff2262b08df8b9"
104 ;;
105 riscv64)
106 - GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.23.6.freebsd-riscv64.tar.gz"
107 - GOLANG_ARCHIVE_CHECKSUM="ca026ec8a30dd0c18164f40e1ce21bd725e2445f11699177d05815189a38de7a"
106 + GOLANG_ARCHIVE_URL="https://go.dev/dl/go1.24.2.freebsd-riscv64.tar.gz"
107 + GOLANG_ARCHIVE_CHECKSUM="ec2088823e16df00600a6d0f72e9a7dc6d2f80c9c140c2043c0cf20e1404d1a9"
108 ;;
109 *)
110 GOLANG_FAILURE_REASON="FreeBSD $(uname -m) platform is not supported out-of-box by Go, you must install a toolchain for it yourself."
src/go/otel-collector/exporter/netdataexporter/go.mod
+8 -4
@@ -1,19 +1,23 @@
1 module github.com/netdata/netdata/otel-collector/exporter/netdataexporter
2
3 -go 1.24.2
3 +go 1.23.4
4
5 require (
6 github.com/stretchr/testify v1.10.0
7 go.opentelemetry.io/collector/component v1.30.0
8 go.opentelemetry.io/collector/component/componenttest v0.124.0
9 go.opentelemetry.io/collector/confmap v1.30.0
10 + go.opentelemetry.io/collector/consumer v1.30.0
11 go.opentelemetry.io/collector/exporter v0.124.0
12 go.opentelemetry.io/collector/exporter/exportertest v0.124.0
13 + go.opentelemetry.io/collector/exporter/xexporter v0.124.0
14 go.opentelemetry.io/collector/pdata v1.30.0
15 go.uber.org/goleak v1.3.0
16 + go.uber.org/zap v1.27.0
17 )
18
19 require (
20 + github.com/cenkalti/backoff/v5 v5.0.2 // indirect
21 github.com/davecgh/go-spew v1.1.1 // indirect
22 github.com/go-logr/logr v1.4.2 // indirect
23 github.com/go-logr/stdr v1.2.2 // indirect
@@ -31,11 +35,12 @@ require (
35 github.com/modern-go/reflect2 v1.0.2 // indirect
36 github.com/pmezard/go-difflib v1.0.0 // indirect
37 go.opentelemetry.io/auto/sdk v1.1.0 // indirect
34 - go.opentelemetry.io/collector/consumer v1.30.0 // indirect
38 + go.opentelemetry.io/collector/config/configretry v1.30.0 // indirect
39 go.opentelemetry.io/collector/consumer/consumererror v0.124.0 // indirect
40 go.opentelemetry.io/collector/consumer/consumertest v0.124.0 // indirect
41 go.opentelemetry.io/collector/consumer/xconsumer v0.124.0 // indirect
38 - go.opentelemetry.io/collector/exporter/xexporter v0.124.0 // indirect
42 + go.opentelemetry.io/collector/extension v1.30.0 // indirect
43 + go.opentelemetry.io/collector/extension/xextension v0.124.0 // indirect
44 go.opentelemetry.io/collector/featuregate v1.30.0 // indirect
45 go.opentelemetry.io/collector/internal/telemetry v0.124.0 // indirect
46 go.opentelemetry.io/collector/pdata/pprofile v0.124.0 // indirect
@@ -51,7 +56,6 @@ require (
56 go.opentelemetry.io/otel/sdk/metric v1.35.0 // indirect
57 go.opentelemetry.io/otel/trace v1.35.0 // indirect
58 go.uber.org/multierr v1.11.0 // indirect
54 - go.uber.org/zap v1.27.0 // indirect
59 golang.org/x/net v0.37.0 // indirect
60 golang.org/x/sys v0.31.0 // indirect
61 golang.org/x/text v0.23.0 // indirect
src/go/otel-collector/exporter/netdataexporter/go.sum
+2
@@ -80,6 +80,8 @@ go.opentelemetry.io/collector/exporter/xexporter v0.124.0 h1:Itfn2+F4ki8hObOtPCe
80 go.opentelemetry.io/collector/exporter/xexporter v0.124.0/go.mod h1:dNK/PPY02gA9BawIKHyVk8kIFdYvqVZ2A+LlMZucIPY=
81 go.opentelemetry.io/collector/extension v1.30.0 h1:AJqntAp1p40Q1az2Vze3OHiMURq56KWnUxaLzs1ghaA=
82 go.opentelemetry.io/collector/extension v1.30.0/go.mod h1:a21WpypFQp9x0Go7yMOknYmIKvdIoWGzjz+h1WMjzLk=
83 +go.opentelemetry.io/collector/extension/extensiontest v0.124.0 h1:pWfKxEqvq5vVdQy+UIerw5j7ZrXezxsfQfuUe8g/xVo=
84 +go.opentelemetry.io/collector/extension/extensiontest v0.124.0/go.mod h1:DLVRyW7tJt8TtYq0Wr5BUsM494YqDiIjN8YCmbVKqjs=
85 go.opentelemetry.io/collector/extension/xextension v0.124.0 h1:Yzf11HXaiMHfS50Zy/CYKfJjoi+/w/tgRZdDQ2VIdW0=
86 go.opentelemetry.io/collector/extension/xextension v0.124.0/go.mod h1:GeM0aSgwVSba3Bvvspuy1E+1aa/Q1CDxoK+e/xcJFVg=
87 go.opentelemetry.io/collector/featuregate v1.30.0 h1:mx7+iP/FQnY7KO8qw/xE3Qd1MQkWcU8VgcqLNrJ8EU8=