Skip to content

Commit d60b7cd

Browse files
authored
ci: upgrade to go 1.22 (#10355)
1 parent fcbdf39 commit d60b7cd

File tree

14 files changed

+17
-19
lines changed

14 files changed

+17
-19
lines changed

.github/workflows/build.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.21.x
13+
GO_VERSION: 1.22.x
1414

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

.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.21.x
37+
go-version: 1.22.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.21.x
31+
go-version: 1.22.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.21.x
52+
go-version: 1.22.x
5353
- uses: protocol/cache-go-action@v1
5454
with:
5555
name: ${{ github.job }}
@@ -137,7 +137,7 @@ jobs:
137137
- name: Setup Go
138138
uses: actions/setup-go@v5
139139
with:
140-
go-version: 1.21.x
140+
go-version: 1.22.x
141141
- uses: protocol/cache-go-action@v1
142142
with:
143143
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.21.x
33+
go-version: 1.22.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.21.x"
30+
go-version: "1.22.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.21.x
34+
go-version: 1.22.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.21.x
35+
go-version: 1.22.x
3636
- name: Check out Kubo
3737
uses: actions/checkout@v4
3838
- name: Install missing tools

.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.21.x
28+
go-version: 1.22.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.21 AS builder
1+
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22 AS builder
22

33
ARG TARGETOS TARGETARCH
44

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

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

3-
go 1.21
3+
go 1.22
44

5-
toolchain go1.21.7
5+
toolchain go1.22.0
66

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

go.mod

+1-3
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,4 @@ require (
250250
lukechampine.com/blake3 v1.2.1 // indirect
251251
)
252252

253-
go 1.21
254-
255-
toolchain go1.21.7
253+
go 1.22

test/dependencies/go.mod

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

3-
go 1.21
3+
go 1.22
44

5-
toolchain go1.21.7
5+
toolchain go1.22.0
66

77
replace github.com/ipfs/kubo => ../../
88

Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"Links":[],"Data":"\u0008\u0002\u0012\nHello Mars\u0018\n"}
1+
{"Links":[],"Data":"\b\u0002\u0012\nHello Mars\u0018\n"}

0 commit comments

Comments
 (0)