Skip to content

Commit 8f07460

Browse files
authored
Upgrade to go1.24 (#10726)
* Upgrade to go1.24 * fix test to look for new version info string
1 parent 2ca5637 commit 8f07460

14 files changed

+15
-15
lines changed

.github/workflows/codeql-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Setup Go
3535
uses: actions/setup-go@v5
3636
with:
37-
go-version: 1.23.x
37+
go-version: 1.24.x
3838

3939
# Initializes the CodeQL tools for scanning.
4040
- name: Initialize CodeQL

.github/workflows/docker-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
steps:
2929
- uses: actions/setup-go@v5
3030
with:
31-
go-version: 1.23.x
31+
go-version: 1.24.x
3232
- uses: actions/checkout@v4
3333
- run: docker build -t $IMAGE_NAME:$WIP_IMAGE_TAG .
3434
- run: docker run --rm $IMAGE_NAME:$WIP_IMAGE_TAG --version

.github/workflows/gateway-conformance.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Setup Go
5050
uses: actions/setup-go@v5
5151
with:
52-
go-version: 1.23.x
52+
go-version: 1.24.x
5353
- uses: protocol/cache-go-action@v1
5454
with:
5555
name: ${{ github.job }}
@@ -136,7 +136,7 @@ jobs:
136136
- name: Setup Go
137137
uses: actions/setup-go@v5
138138
with:
139-
go-version: 1.23.x
139+
go-version: 1.24.x
140140
- uses: protocol/cache-go-action@v1
141141
with:
142142
name: ${{ github.job }}

.github/workflows/gobuild.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
steps:
3131
- uses: actions/setup-go@v5
3232
with:
33-
go-version: 1.23.x
33+
go-version: 1.24.x
3434
- uses: actions/checkout@v4
3535
- run: make cmd/ipfs-try-build
3636
env:

.github/workflows/golang-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
submodules: recursive
2828
- uses: actions/setup-go@v5
2929
with:
30-
go-version: "1.23.x"
30+
go-version: "1.24.x"
3131
- name: Check that go.mod is tidy
3232
uses: protocol/[email protected]
3333
with:

.github/workflows/golint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ jobs:
3131
steps:
3232
- uses: actions/setup-go@v5
3333
with:
34-
go-version: 1.23.x
34+
go-version: 1.24.x
3535
- uses: actions/checkout@v4
3636
- run: make -O test_go_lint

.github/workflows/gotest.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Set up Go
3333
uses: actions/setup-go@v5
3434
with:
35-
go-version: 1.23.x
35+
go-version: 1.24.x
3636
- name: Check out Kubo
3737
uses: actions/checkout@v4
3838
- name: Install missing tools

.github/workflows/interop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- 'master'
1111

1212
env:
13-
GO_VERSION: 1.23.x
13+
GO_VERSION: 1.24.x
1414

1515
concurrency:
1616
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }}

.github/workflows/sharness.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Go
2626
uses: actions/setup-go@v5
2727
with:
28-
go-version: 1.23.x
28+
go-version: 1.24.x
2929
- name: Checkout Kubo
3030
uses: actions/checkout@v4
3131
with:

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -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
22

33
ARG TARGETOS TARGETARCH
44

docs/examples/kubo-as-a-library/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/ipfs/kubo/examples/kubo-as-a-library
22

3-
go 1.23
3+
go 1.24
44

55
// Used to keep this in sync with the current version of kubo. You should remove
66
// this if you copy this example.

go.mod

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

3-
go 1.23
3+
go 1.24
44

55
require (
66
bazil.org/fuse v0.0.0-20200117225306-7b5117fecadc

test/cli/basic_commands_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func TestIPFSVersionDeps(t *testing.T) {
6262
res = strings.TrimSpace(res)
6363
lines := SplitLines(res)
6464

65-
assert.Equal(t, "github.com/ipfs/kubo@(devel)", lines[0])
65+
assert.True(t, strings.HasPrefix(lines[0], "github.com/ipfs/kubo@v"))
6666

6767
for _, depLine := range lines[1:] {
6868
split := strings.Split(depLine, " => ")

test/dependencies/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/ipfs/kubo/test/dependencies
22

3-
go 1.23
3+
go 1.24
44

55
replace github.com/ipfs/kubo => ../../
66

0 commit comments

Comments
 (0)