Skip to content

Commit 9495b31

Browse files
authored
Upgrade golang version to 1.24.1 (#2850)
* Upgrade go to 1.24 * Update golanci-lint * Updated license cache * Try go1.24.1 * Fix Linux_ARM64 docker image link * Run macOS dist tasks on arm64 runners
1 parent a39f9fd commit 9495b31

16 files changed

+154
-17
lines changed

Diff for: .github/workflows/check-easyjson.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Check easyjson generated files
22

33
env:
44
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
5-
GO_VERSION: "1.23"
5+
GO_VERSION: "1.24"
66

77
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
88
on:

Diff for: .github/workflows/check-go-dependencies-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Check Go Dependencies
33

44
env:
55
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6-
GO_VERSION: "1.23"
6+
GO_VERSION: "1.24"
77

88
# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
99
on:

Diff for: .github/workflows/check-go-task.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Check Go
33

44
env:
55
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6-
GO_VERSION: "1.23"
6+
GO_VERSION: "1.24"
77

88
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
99
on:
@@ -116,7 +116,7 @@ jobs:
116116
- name: golangci-lint
117117
uses: golangci/golangci-lint-action@v6
118118
with:
119-
version: v1.63
119+
version: v1.64.5
120120

121121
- name: Check style
122122
env:

Diff for: .github/workflows/check-i18n-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Check Internationalization
22

33
env:
44
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
5-
GO_VERSION: "1.23"
5+
GO_VERSION: "1.24"
66

77
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
88
on:

Diff for: .github/workflows/check-markdown-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ env:
55
# See: https://github.com/actions/setup-node/#readme
66
NODE_VERSION: 16.x
77
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
8-
GO_VERSION: "1.23"
8+
GO_VERSION: "1.24"
99

1010
# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
1111
on:

Diff for: .github/workflows/check-mkdocs-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Check Website
33

44
env:
55
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6-
GO_VERSION: "1.23"
6+
GO_VERSION: "1.24"
77
# See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
88
PYTHON_VERSION: "3.9"
99

Diff for: .github/workflows/check-protobuf-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Check Protocol Buffers
22

33
env:
44
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
5-
GO_VERSION: "1.23"
5+
GO_VERSION: "1.24"
66

77
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
88
on:

Diff for: .github/workflows/deploy-cobra-mkdocs-versioned-poetry.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy Website
33

44
env:
55
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6-
GO_VERSION: "1.23"
6+
GO_VERSION: "1.24"
77
# See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
88
PYTHON_VERSION: "3.9"
99

Diff for: .github/workflows/i18n-weekly-pull.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: i18n-weekly-pull
22

33
env:
44
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
5-
GO_VERSION: "1.23"
5+
GO_VERSION: "1.24"
66
COVERAGE_ARTIFACT: coverage-data
77

88
on:

Diff for: .github/workflows/publish-go-tester-task.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -76,44 +76,55 @@ jobs:
7676
create-artifacts:
7777
needs: package-name-prefix
7878
name: Create artifact ${{ matrix.artifact.name }}
79-
runs-on: ubuntu-latest
79+
runs-on: ${{ matrix.artifact.runner }}
8080

8181
strategy:
8282
matrix:
8383
artifact:
8484
- task: dist:Windows_32bit
8585
path: "*Windows_32bit.zip"
8686
name: Windows_X86-32
87+
runner: ubuntu-latest
8788
- task: dist:Windows_64bit
8889
path: "*Windows_64bit.zip"
8990
name: Windows_X86-64
91+
runner: ubuntu-latest
9092
- task: dist:Linux_32bit
9193
path: "*Linux_32bit.tar.gz"
9294
name: Linux_X86-32
95+
runner: ubuntu-latest
9396
- task: dist:Linux_64bit
9497
path: "*Linux_64bit.tar.gz"
9598
name: Linux_X86-64
99+
runner: ubuntu-latest
96100
- task: dist:Linux_ARMv6
97101
path: "*Linux_ARMv6.tar.gz"
98102
name: Linux_ARMv6
103+
runner: ubuntu-latest
99104
- task: dist:Linux_ARMv7
100105
path: "*Linux_ARMv7.tar.gz"
101106
name: Linux_ARMv7
107+
runner: ubuntu-latest
102108
- task: dist:Linux_ARM64
103109
path: "*Linux_ARM64.tar.gz"
104110
name: Linux_ARM64
111+
runner: ubuntu-latest
105112
- task: dist:macOS_64bit
106113
path: "*macOS_64bit.tar.gz"
107114
name: macOS_64
115+
runner: ubuntu-latest
108116
- task: dist:macOS_ARM64
109117
path: "*macOS_ARM64.tar.gz"
110118
name: macOS_ARM64
119+
runner: ubuntu-24.04-arm
111120
- task: protoc:collect
112121
path: "*_proto.zip"
113122
name: rpc-protocol-files
123+
runner: ubuntu-latest
114124
- task: dist:jsonschema
115125
path: "*configuration.schema.json"
116126
name: configuration-schema
127+
runner: ubuntu-latest
117128

118129
steps:
119130
- name: Checkout repository

Diff for: .github/workflows/test-go-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Test Go
33

44
env:
55
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6-
GO_VERSION: "1.23"
6+
GO_VERSION: "1.24"
77
COVERAGE_ARTIFACT: coverage-data
88

99
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows

Diff for: .golangci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
run:
22
timeout: 10m
3-
go: "1.22"
3+
go: "1.24"
44
tests: true
55

66
linters:

Diff for: .licenses/go/golang.org/x/crypto/hkdf.dep.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
name: golang.org/x/crypto/hkdf
3+
version: v0.32.0
4+
type: go
5+
summary: Package hkdf implements the HMAC-based Extract-and-Expand Key Derivation
6+
Function (HKDF) as defined in RFC 5869.
7+
homepage: https://pkg.go.dev/golang.org/x/crypto/hkdf
8+
license: bsd-3-clause
9+
licenses:
10+
- sources: crypto@v0.32.0/LICENSE
11+
text: |
12+
Copyright 2009 The Go Authors.
13+
14+
Redistribution and use in source and binary forms, with or without
15+
modification, are permitted provided that the following conditions are
16+
met:
17+
18+
* Redistributions of source code must retain the above copyright
19+
notice, this list of conditions and the following disclaimer.
20+
* Redistributions in binary form must reproduce the above
21+
copyright notice, this list of conditions and the following disclaimer
22+
in the documentation and/or other materials provided with the
23+
distribution.
24+
* Neither the name of Google LLC nor the names of its
25+
contributors may be used to endorse or promote products derived from
26+
this software without specific prior written permission.
27+
28+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39+
- sources: crypto@v0.32.0/PATENTS
40+
text: |
41+
Additional IP Rights Grant (Patents)
42+
43+
"This implementation" means the copyrightable works distributed by
44+
Google as part of the Go project.
45+
46+
Google hereby grants to You a perpetual, worldwide, non-exclusive,
47+
no-charge, royalty-free, irrevocable (except as stated in this section)
48+
patent license to make, have made, use, offer to sell, sell, import,
49+
transfer and otherwise run, modify and propagate the contents of this
50+
implementation of Go, where such license applies only to those patent
51+
claims, both currently owned or controlled by Google and acquired in
52+
the future, licensable by Google that are necessarily infringed by this
53+
implementation of Go. This grant does not include claims that would be
54+
infringed only as a consequence of further modification of this
55+
implementation. If you or your agent or exclusive licensee institute or
56+
order or agree to the institution of patent litigation against any
57+
entity (including a cross-claim or counterclaim in a lawsuit) alleging
58+
that this implementation of Go or any code incorporated within this
59+
implementation of Go constitutes direct or contributory patent
60+
infringement, or inducement of patent infringement, then any patent
61+
rights granted to you under this License for this implementation of Go
62+
shall terminate as of the date such litigation is filed.
63+
notices: []

Diff for: .licenses/go/golang.org/x/crypto/sha3.dep.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
name: golang.org/x/crypto/sha3
3+
version: v0.32.0
4+
type: go
5+
summary: Package sha3 implements the SHA-3 fixed-output-length hash functions and
6+
the SHAKE variable-output-length hash functions defined by FIPS-202.
7+
homepage: https://pkg.go.dev/golang.org/x/crypto/sha3
8+
license: other
9+
licenses:
10+
- sources: crypto@v0.32.0/LICENSE
11+
text: |
12+
Copyright 2009 The Go Authors.
13+
14+
Redistribution and use in source and binary forms, with or without
15+
modification, are permitted provided that the following conditions are
16+
met:
17+
18+
* Redistributions of source code must retain the above copyright
19+
notice, this list of conditions and the following disclaimer.
20+
* Redistributions in binary form must reproduce the above
21+
copyright notice, this list of conditions and the following disclaimer
22+
in the documentation and/or other materials provided with the
23+
distribution.
24+
* Neither the name of Google LLC nor the names of its
25+
contributors may be used to endorse or promote products derived from
26+
this software without specific prior written permission.
27+
28+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39+
- sources: crypto@v0.32.0/PATENTS
40+
text: |
41+
Additional IP Rights Grant (Patents)
42+
43+
"This implementation" means the copyrightable works distributed by
44+
Google as part of the Go project.
45+
46+
Google hereby grants to You a perpetual, worldwide, non-exclusive,
47+
no-charge, royalty-free, irrevocable (except as stated in this section)
48+
patent license to make, have made, use, offer to sell, sell, import,
49+
transfer and otherwise run, modify and propagate the contents of this
50+
implementation of Go, where such license applies only to those patent
51+
claims, both currently owned or controlled by Google and acquired in
52+
the future, licensable by Google that are necessarily infringed by this
53+
implementation of Go. This grant does not include claims that would be
54+
infringed only as a consequence of further modification of this
55+
implementation. If you or your agent or exclusive licensee institute or
56+
order or agree to the institution of patent litigation against any
57+
entity (including a cross-claim or counterclaim in a lawsuit) alleging
58+
that this implementation of Go or any code incorporated within this
59+
implementation of Go constitutes direct or contributory patent
60+
infringement, or inducement of patent infringement, then any patent
61+
rights granted to you under this License for this implementation of Go
62+
shall terminate as of the date such litigation is filed.
63+
notices: []

Diff for: DistTasks.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ version: "3"
1919

2020
vars:
2121
CONTAINER: "docker.elastic.co/beats-dev/golang-crossbuild"
22-
GO_VERSION: "1.23.4"
22+
GO_VERSION: "1.24.1"
2323

2424
tasks:
2525
Windows_32bit:
@@ -163,9 +163,9 @@ tasks:
163163
164164
vars:
165165
PLATFORM_DIR: "{{.PROJECT_NAME}}_linux_arm_64"
166-
BUILD_COMMAND: "go build -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}} {{.LDFLAGS}}"
166+
BUILD_COMMAND: "go build -buildvcs=false -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}} {{.LDFLAGS}}"
167167
BUILD_PLATFORM: "linux/arm64"
168-
CONTAINER_TAG: "{{.GO_VERSION}}-arm"
168+
CONTAINER_TAG: "{{.GO_VERSION}}-arm-debian12"
169169
PACKAGE_PLATFORM: "Linux_ARM64"
170170
PACKAGE_NAME: "{{.PROJECT_NAME}}_{{.VERSION}}_{{.PACKAGE_PLATFORM}}.tar.gz"
171171

Diff for: go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/arduino/arduino-cli
22

3-
go 1.23.4
3+
go 1.24.1
44

55
// We must use this fork until https://github.com/mailru/easyjson/pull/372 is merged
66
replace github.com/mailru/easyjson => github.com/cmaglie/easyjson v0.8.1

0 commit comments

Comments
 (0)