@cryptotaxi247 / kubo / commits / d60b7cd1b

ci: upgrade to go 1.22 (#10355)

Henrique Dias committed Mar 5, 2024 at 08:37 UTC d60b7cd1b1d0c36bf958c09352e8bd41707babe6
14 files changed +17 -19
.github/workflows/build.yml
+1 -1
@@ -10,7 +10,7 @@ on:
10 - 'master'
11
12 env:
13 - GO_VERSION: 1.21.x
13 + GO_VERSION: 1.22.x
14
15 concurrency:
16 group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }}
.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.21.x
37 + go-version: 1.22.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.21.x
31 + go-version: 1.22.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.21.x
52 + go-version: 1.22.x
53 - uses: protocol/cache-go-action@v1
54 with:
55 name: ${{ github.job }}
@@ -137,7 +137,7 @@ jobs:
137 - name: Setup Go
138 uses: actions/setup-go@v5
139 with:
140 - go-version: 1.21.x
140 + go-version: 1.22.x
141 - uses: protocol/cache-go-action@v1
142 with:
143 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.21.x
33 + go-version: 1.22.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.21.x"
30 + go-version: "1.22.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.21.x
34 + go-version: 1.22.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.21.x
35 + go-version: 1.22.x
36 - name: Check out Kubo
37 uses: actions/checkout@v4
38 - name: Install missing tools
.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.21.x
28 + go-version: 1.22.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.21 AS builder
1 +FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22 AS builder
2
3 ARG TARGETOS TARGETARCH
4
docs/examples/kubo-as-a-library/go.mod
+2 -2
@@ -1,8 +1,8 @@
1 module github.com/ipfs/kubo/examples/kubo-as-a-library
2
3 -go 1.21
3 +go 1.22
4
5 -toolchain go1.21.7
5 +toolchain go1.22.0
6
7 // Used to keep this in sync with the current version of kubo. You should remove
8 // this if you copy this example.
go.mod
+1 -3
@@ -250,6 +250,4 @@ require (
250 lukechampine.com/blake3 v1.2.1 // indirect
251 )
252
253 -go 1.21
254 -
255 -toolchain go1.21.7
253 +go 1.22
test/dependencies/go.mod
+2 -2
@@ -1,8 +1,8 @@
1 module github.com/ipfs/kubo/test/dependencies
2
3 -go 1.21
3 +go 1.22
4
5 -toolchain go1.21.7
5 +toolchain go1.22.0
6
7 replace github.com/ipfs/kubo => ../../
8
test/sharness/t0051-object-data/expected_getOut
+1 -1
@@ -1 +1 @@
1 -{"Links":[],"Data":"\u0008\u0002\u0012\nHello Mars\u0018\n"}
1 +{"Links":[],"Data":"\b\u0002\u0012\nHello Mars\u0018\n"}