Upgrade to go1.24 (#10726)
* Upgrade to go1.24 * fix test to look for new version info string
Andrew Gillis committed
Feb 24, 2025 at 12:46 UTC
8f07460ab32c6f7863038261652b87cfca224f1f
14 files changed
+15
-15
.github/workflows/codeql-analysis.yml
+1
-1
@@ -34,7 +34,7 @@ jobs:
34
- name: Setup Go
35
uses: actions/setup-go@v5
36
with:
37
- go-version: 1.23.x
37
+ go-version: 1.24.x
38
39
# Initializes the CodeQL tools for scanning.
40
- name: Initialize CodeQL
.github/workflows/docker-build.yml
+1
-1
@@ -28,7 +28,7 @@ jobs:
28
steps:
29
- uses: actions/setup-go@v5
30
with:
31
- go-version: 1.23.x
31
+ go-version: 1.24.x
32
- uses: actions/checkout@v4
33
- run: docker build -t $IMAGE_NAME:$WIP_IMAGE_TAG .
34
- run: docker run --rm $IMAGE_NAME:$WIP_IMAGE_TAG --version
.github/workflows/gateway-conformance.yml
+2
-2
@@ -49,7 +49,7 @@ jobs:
49
- name: Setup Go
50
uses: actions/setup-go@v5
51
with:
52
- go-version: 1.23.x
52
+ go-version: 1.24.x
53
- uses: protocol/cache-go-action@v1
54
with:
55
name: ${{ github.job }}
@@ -136,7 +136,7 @@ jobs:
136
- name: Setup Go
137
uses: actions/setup-go@v5
138
with:
139
- go-version: 1.23.x
139
+ go-version: 1.24.x
140
- uses: protocol/cache-go-action@v1
141
with:
142
name: ${{ github.job }}
.github/workflows/gobuild.yml
+1
-1
@@ -30,7 +30,7 @@ jobs:
30
steps:
31
- uses: actions/setup-go@v5
32
with:
33
- go-version: 1.23.x
33
+ go-version: 1.24.x
34
- uses: actions/checkout@v4
35
- run: make cmd/ipfs-try-build
36
env:
.github/workflows/golang-analysis.yml
+1
-1
@@ -27,7 +27,7 @@ jobs:
27
submodules: recursive
28
- uses: actions/setup-go@v5
29
with:
30
- go-version: "1.23.x"
30
+ go-version: "1.24.x"
31
- name: Check that go.mod is tidy
32
uses: protocol/multiple-go-modules@v1.4
33
with:
.github/workflows/golint.yml
+1
-1
@@ -31,6 +31,6 @@ jobs:
31
steps:
32
- uses: actions/setup-go@v5
33
with:
34
- go-version: 1.23.x
34
+ go-version: 1.24.x
35
- uses: actions/checkout@v4
36
- run: make -O test_go_lint
.github/workflows/gotest.yml
+1
-1
@@ -32,7 +32,7 @@ jobs:
32
- name: Set up Go
33
uses: actions/setup-go@v5
34
with:
35
- go-version: 1.23.x
35
+ go-version: 1.24.x
36
- name: Check out Kubo
37
uses: actions/checkout@v4
38
- name: Install missing tools
.github/workflows/interop.yml
+1
-1
@@ -10,7 +10,7 @@ on:
10
- 'master'
11
12
env:
13
- GO_VERSION: 1.23.x
13
+ GO_VERSION: 1.24.x
14
15
concurrency:
16
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }}
.github/workflows/sharness.yml
+1
-1
@@ -25,7 +25,7 @@ jobs:
25
- name: Setup Go
26
uses: actions/setup-go@v5
27
with:
28
- go-version: 1.23.x
28
+ go-version: 1.24.x
29
- name: Checkout Kubo
30
uses: actions/checkout@v4
31
with:
Dockerfile
+1
-1
@@ -1,4 +1,4 @@
1
-FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.23 AS builder
1
+FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.24 AS builder
2
3
ARG TARGETOS TARGETARCH
4
docs/examples/kubo-as-a-library/go.mod
+1
-1
@@ -1,6 +1,6 @@
1
module github.com/ipfs/kubo/examples/kubo-as-a-library
2
3
-go 1.23
3
+go 1.24
4
5
// Used to keep this in sync with the current version of kubo. You should remove
6
// this if you copy this example.
go.mod
+1
-1
@@ -1,6 +1,6 @@
1
module github.com/ipfs/kubo
2
3
-go 1.23
3
+go 1.24
4
5
require (
6
bazil.org/fuse v0.0.0-20200117225306-7b5117fecadc
test/cli/basic_commands_test.go
+1
-1
@@ -62,7 +62,7 @@ func TestIPFSVersionDeps(t *testing.T) {
62
res = strings.TrimSpace(res)
63
lines := SplitLines(res)
64
65
- assert.Equal(t, "github.com/ipfs/kubo@(devel)", lines[0])
65
+ assert.True(t, strings.HasPrefix(lines[0], "github.com/ipfs/kubo@v"))
66
67
for _, depLine := range lines[1:] {
68
split := strings.Split(depLine, " => ")
test/dependencies/go.mod
+1
-1
@@ -1,6 +1,6 @@
1
module github.com/ipfs/kubo/test/dependencies
2
3
-go 1.23
3
+go 1.24
4
5
replace github.com/ipfs/kubo => ../../
6