Skip to content

Commit 2f9de74

Browse files
committedFeb 29, 2024
chore: upgrade to Go 1.22
1 parent 9110107 commit 2f9de74

18 files changed

+55
-25
lines changed
 

‎.github/workflows/check-generated.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# steps:
2020
# - uses: actions/setup-go@v3
2121
# with:
22-
# go-version: "1.19"
22+
# go-version: "1.22"
2323

2424
# - uses: actions/checkout@v3
2525

@@ -43,7 +43,7 @@ jobs:
4343
steps:
4444
- uses: actions/setup-go@v4
4545
with:
46-
go-version: '1.19'
46+
go-version: '1.22'
4747

4848
- uses: actions/checkout@v4
4949
with:

‎.github/workflows/coverage.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v4
1313
- uses: actions/setup-go@v4
1414
with:
15-
go-version: "1.19"
15+
go-version: "1.22"
1616
- name: Create a file with all the pkgs
1717
run: go list ./... > pkgs.txt
1818
- name: Split pkgs into 4 files
@@ -48,7 +48,7 @@ jobs:
4848
steps:
4949
- uses: actions/setup-go@v4
5050
with:
51-
go-version: "1.19"
51+
go-version: "1.22"
5252
- uses: actions/checkout@v4
5353
- uses: technote-space/get-diff-action@v6
5454
with:
@@ -70,7 +70,7 @@ jobs:
7070
steps:
7171
- uses: actions/setup-go@v4
7272
with:
73-
go-version: "1.19"
73+
go-version: "1.22"
7474
- uses: actions/checkout@v4
7575
- uses: technote-space/get-diff-action@v6
7676
with:

‎.github/workflows/e2e-manual.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/setup-go@v4
1818
with:
19-
go-version: '1.19'
19+
go-version: '1.22'
2020

2121
- uses: actions/checkout@v4
2222

‎.github/workflows/e2e-nightly-34x.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
steps:
2424
- uses: actions/setup-go@v4
2525
with:
26-
go-version: '1.19'
26+
go-version: '1.22'
2727

2828
- uses: actions/checkout@v4
2929
with:

‎.github/workflows/e2e.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/setup-go@v4
1616
with:
17-
go-version: '1.19'
17+
go-version: '1.22'
1818
- uses: actions/checkout@v4
1919
- uses: technote-space/get-diff-action@v6
2020
with:

‎.github/workflows/fuzz-nightly.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- uses: actions/setup-go@v4
1313
with:
14-
go-version: '1.19'
14+
go-version: '1.22'
1515

1616
- uses: actions/checkout@v4
1717

‎.github/workflows/govulncheck.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
# steps:
1919
# - uses: actions/setup-go@v3
2020
# with:
21-
# go-version: "1.19"
21+
# go-version: "1.22"
2222
# - uses: actions/checkout@v3
2323
# - uses: technote-space/get-diff-action@v6
2424
# with:

‎.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/checkout@v4
2323
- uses: actions/setup-go@v4
2424
with:
25-
go-version: '1.19'
25+
go-version: '1.22'
2626
- uses: technote-space/get-diff-action@v6
2727
with:
2828
PATTERNS: |

‎.github/workflows/pre-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- uses: actions/setup-go@v4
2020
with:
21-
go-version: '1.19'
21+
go-version: '1.22'
2222

2323
# Similar check to ./release-version.yml, but enforces this when pushing
2424
# tags. The ./release-version.yml check can be bypassed and is mainly

‎.github/workflows/release-version.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- uses: actions/setup-go@v4
1717
with:
18-
go-version: '1.19'
18+
go-version: '1.22'
1919

2020
- name: Check version
2121
run: |

‎.github/workflows/release.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
- uses: actions/setup-go@v4
1818
with:
19-
go-version: '1.19'
19+
go-version: '1.22'
2020

2121
- name: Generate release notes
2222
run: |
@@ -32,4 +32,3 @@ jobs:
3232
args: release --clean --release-notes ../release_notes.md
3333
env:
3434
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-

‎.github/workflows/tests.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
steps:
2626
- uses: actions/setup-go@v4
2727
with:
28-
go-version: "1.19"
28+
go-version: "1.22"
2929
- uses: actions/checkout@v4
3030
- uses: technote-space/get-diff-action@v6
3131
with:
@@ -57,7 +57,7 @@ jobs:
5757
steps:
5858
- uses: actions/setup-go@v4
5959
with:
60-
go-version: "1.19"
60+
go-version: "1.22"
6161
- uses: actions/checkout@v4
6262
- uses: technote-space/get-diff-action@v6
6363
with:
@@ -89,7 +89,7 @@ jobs:
8989
steps:
9090
- uses: actions/setup-go@v4
9191
with:
92-
go-version: "1.19"
92+
go-version: "1.22"
9393
- uses: actions/checkout@v4
9494
- uses: technote-space/get-diff-action@v6
9595
with:
@@ -121,7 +121,7 @@ jobs:
121121
# steps:
122122
# - uses: actions/setup-go@v3
123123
# with:
124-
# go-version: "1.19"
124+
# go-version: "1.22"
125125
# - uses: actions/checkout@v3
126126
# - uses: technote-space/get-diff-action@v6
127127
# with:

‎DOCKER/Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Use a build arg to ensure that both stages use the same,
22
# hopefully current, go version.
3-
ARG GOLANG_BASE_IMAGE=golang:1.19-alpine
3+
ARG GOLANG_BASE_IMAGE=golang:1.22-alpine
44

55
# stage 1 Generate CometBFT Binary
66
FROM --platform=$BUILDPLATFORM $GOLANG_BASE_IMAGE as builder
@@ -58,4 +58,3 @@ CMD ["node"]
5858

5959
# Expose the data directory as a volume since there's mutable state in there
6060
VOLUME [ "$CMTHOME" ]
61-

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ This repo intends on preserving the minimal possible diff with [cometbft/cometbf
5050
- **specific to Celestia**: consider if [celestia-app](https://github.com/celestiaorg/celestia-app) is a better target
5151
- **not specific to Celestia**: consider making the contribution upstream in CometBFT
5252

53-
1. [Install Go](https://go.dev/doc/install) 1.19+
53+
1. [Install Go](https://go.dev/doc/install) 1.22+
5454
2. Fork this repo
5555
3. Clone your fork
5656
4. Find an issue to work on (see [good first issues](https://github.com/celestiaorg/celestia-core/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22))

‎go.mod

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

3-
go 1.19
3+
go 1.22
44

55
require (
66
github.com/BurntSushi/toml v1.2.1

‎go.sum

+32
Large diffs are not rendered by default.

‎scripts/proto-gen.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ cd "$(git rev-parse --show-toplevel)"
1010

1111
# Run inside Docker to install the correct versions of the required tools
1212
# without polluting the local system.
13-
docker run --rm -i -v "$PWD":/w --workdir=/w golang:1.19-alpine sh <<"EOF"
13+
docker run --rm -i -v "$PWD":/w --workdir=/w golang:1.22-alpine sh <<"EOF"
1414
apk add git make
1515
1616
go install github.com/bufbuild/buf/cmd/buf

‎test/docker/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.19
1+
FROM golang:1.22
22

33
# Grab deps (jq, hexdump, xxd, killall)
44
RUN apt-get update && \

0 commit comments

Comments
 (0)
Please sign in to comment.