-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): Bump Go from 1.20 to 1.22 (#1410)
* Bump Go from 1.20 to 1.22.4 * follow golangci-lint rule * Change ghaction go version * Change the go version of all docker files * add go version to split-test-files * Replace slice header because it's deprecated since go 1.21 * Add CHANGELOG * Update subdirs go version (cherry picked from commit 7ebd36f) # Conflicts: # .github/workflows/check-generated.yml # .github/workflows/lint.yml # .github/workflows/release-sims.yml # .github/workflows/test.yml # CHANGELOG.md # go.sum # tools/error_doc/go.mod
- Loading branch information
1 parent
9c2bf2d
commit 837c543
Showing
19 changed files
with
176 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Verify that generated code is up-to-date. | ||
|
||
name: Check generated code | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
check-error-doc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Golang | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Check generated error docs | ||
run: | | ||
make error-doc-gen | ||
if ! git diff --stat --exit-code ; then | ||
echo ">> ERROR:" | ||
echo ">>" | ||
echo ">> Error documents require update (source files in x folder may have changed)." | ||
echo ">> Ensure your tools are up-to-date, re-run 'make error-doc' and update this PR." | ||
echo ">>" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,13 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
<<<<<<< HEAD | ||
go-version: '1.20' | ||
- uses: actions/checkout@v3 | ||
======= | ||
go-version: '1.22' | ||
- uses: actions/checkout@v4 | ||
>>>>>>> 7ebd36fc4 (chore(deps): Bump Go from 1.20 to 1.22 (#1410)) | ||
- uses: technote-space/[email protected] | ||
with: | ||
PATTERNS: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.22' | ||
- uses: ./.github/actions/generate-swagger | ||
- name: diff | ||
run: git diff | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.22' | ||
- run: | | ||
make build | ||
|
@@ -39,7 +39,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.22' | ||
- name: install runsim | ||
run: | | ||
export GO111MODULE="on" && go install github.com/cosmos/tools/cmd/[email protected] | ||
|
@@ -55,8 +55,13 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
<<<<<<< HEAD | ||
go-version: '1.20' | ||
- uses: actions/[email protected] | ||
======= | ||
go-version: '1.22' | ||
- uses: actions/[email protected] | ||
>>>>>>> 7ebd36fc4 (chore(deps): Bump Go from 1.20 to 1.22 (#1410)) | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
|
@@ -75,8 +80,13 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
<<<<<<< HEAD | ||
go-version: '1.20' | ||
- uses: actions/[email protected] | ||
======= | ||
go-version: '1.22' | ||
- uses: actions/[email protected] | ||
>>>>>>> 7ebd36fc4 (chore(deps): Bump Go from 1.20 to 1.22 (#1410)) | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
|
@@ -95,8 +105,13 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
<<<<<<< HEAD | ||
go-version: '1.20' | ||
- uses: actions/[email protected] | ||
======= | ||
go-version: '1.22' | ||
- uses: actions/[email protected] | ||
>>>>>>> 7ebd36fc4 (chore(deps): Bump Go from 1.20 to 1.22 (#1410)) | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.22' | ||
- name: Display go version | ||
run: go version | ||
- run: make build | ||
|
@@ -37,7 +37,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.22' | ||
- name: Display go version | ||
run: go version | ||
- name: Install runsim | ||
|
@@ -54,7 +54,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.22' | ||
- name: Display go version | ||
run: go version | ||
- uses: technote-space/[email protected] | ||
|
@@ -81,7 +81,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.22' | ||
- name: Display go version | ||
run: go version | ||
- uses: technote-space/[email protected] | ||
|
@@ -110,7 +110,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.22' | ||
- name: Display go version | ||
run: go version | ||
- uses: technote-space/[email protected] | ||
|
@@ -139,7 +139,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.22' | ||
- name: Display go version | ||
run: go version | ||
- uses: technote-space/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.22' | ||
- name: Display go version | ||
run: go version | ||
- run: make build | ||
|
@@ -24,7 +24,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.22' | ||
- name: Display go version | ||
run: go version | ||
- name: Install runsim | ||
|
@@ -41,7 +41,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.22' | ||
- name: Display go version | ||
run: go version | ||
- uses: actions/[email protected] | ||
|
@@ -59,7 +59,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.22' | ||
- name: Display go version | ||
run: go version | ||
- uses: actions/[email protected] | ||
|
@@ -77,7 +77,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.22' | ||
- name: Display go version | ||
run: go version | ||
- uses: actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.22' | ||
- name: Display go version | ||
run: go version | ||
- name: install tparse | ||
|
@@ -51,7 +51,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.22' | ||
- uses: technote-space/[email protected] | ||
id: git_diff | ||
with: | ||
|
@@ -70,7 +70,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.22' | ||
- name: Display go version | ||
run: go version | ||
- uses: technote-space/[email protected] | ||
|
@@ -88,7 +88,14 @@ jobs: | |
split-test-files: | ||
runs-on: ubuntu-latest | ||
steps: | ||
<<<<<<< HEAD | ||
- uses: actions/checkout@v3 | ||
======= | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
>>>>>>> 7ebd36fc4 (chore(deps): Bump Go from 1.20 to 1.22 (#1410)) | ||
- name: Create a file with all the pkgs | ||
run: go list ./... > pkgs.txt | ||
- name: Split pkgs into 4 files | ||
|
@@ -122,7 +129,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.22' | ||
- uses: technote-space/[email protected] | ||
with: | ||
PATTERNS: | | ||
|
@@ -204,7 +211,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.22' | ||
- uses: technote-space/[email protected] | ||
with: | ||
PATTERNS: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.20-alpine as build | ||
FROM golang:1.22-alpine as build | ||
|
||
RUN apk add --no-cache tar | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.20-alpine as build | ||
FROM golang:1.22-alpine as build | ||
|
||
RUN apk add git gcc libc-dev --no-cache | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
go 1.20 | ||
go 1.22 | ||
|
||
module github.com/Finschia/finschia-sdk | ||
|
||
|
Oops, something went wrong.