From 1d3193cba40432b7feec38010609130e84247dc8 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Sat, 6 May 2023 18:50:34 +0200 Subject: [PATCH] ci: bump go in CI (#16049) --- .github/workflows/build.yml | 3 +- .github/workflows/codeql-analysis.yml | 3 +- .github/workflows/dependabot-update-all.yml | 3 +- .github/workflows/dependencies-review.yml | 3 +- .github/workflows/lint.yml | 3 +- .github/workflows/release-confix.yml | 3 +- .github/workflows/release-cosmovisor.yml | 3 +- .github/workflows/release-rosetta.yml | 3 +- .github/workflows/release.yml | 3 +- .github/workflows/sims-045.yml | 15 ++-- .github/workflows/sims-046.yml | 15 ++-- .github/workflows/sims-047.yml | 15 ++-- .github/workflows/sims-nightly.yml | 6 +- .github/workflows/sims.yml | 12 ++-- .github/workflows/test.yml | 78 ++++++++++++++------- simapp/app_v2.go | 2 +- 16 files changed, 113 insertions(+), 57 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5d6e47725c..60e734bb75 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - uses: technote-space/get-diff-action@v6.1.2 id: git_diff with: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 14c59054a2..4c008d3ac0 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -25,7 +25,8 @@ jobs: uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v2 diff --git a/.github/workflows/dependabot-update-all.yml b/.github/workflows/dependabot-update-all.yml index 9f31e355fd..5f6342a76f 100644 --- a/.github/workflows/dependabot-update-all.yml +++ b/.github/workflows/dependabot-update-all.yml @@ -17,7 +17,8 @@ jobs: token: ${{ secrets.PRBOT_PAT }} - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - name: Extract updated dependency id: deps run: | diff --git a/.github/workflows/dependencies-review.yml b/.github/workflows/dependencies-review.yml index 21dd1ae46a..e4f13fb2cc 100644 --- a/.github/workflows/dependencies-review.yml +++ b/.github/workflows/dependencies-review.yml @@ -14,7 +14,8 @@ jobs: uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - name: "Dependency Review" uses: actions/dependency-review-action@v3 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 19fa8a7aa9..c035bdb293 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - uses: technote-space/get-diff-action@v6.1.2 id: git_diff with: diff --git a/.github/workflows/release-confix.yml b/.github/workflows/release-confix.yml index bae38c0914..9cf6a9ae54 100644 --- a/.github/workflows/release-confix.yml +++ b/.github/workflows/release-confix.yml @@ -16,7 +16,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true # get 'v*.*.*' part from 'confix/v*.*.*' and save to $GITHUB_ENV - name: Set env run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/confix/}" >> $GITHUB_ENV diff --git a/.github/workflows/release-cosmovisor.yml b/.github/workflows/release-cosmovisor.yml index 7bacf8d26e..ba55871311 100644 --- a/.github/workflows/release-cosmovisor.yml +++ b/.github/workflows/release-cosmovisor.yml @@ -16,7 +16,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true # get 'v*.*.*' part from 'cosmovisor/v*.*.*' and save to $GITHUB_ENV - name: Set env run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/cosmovisor/}" >> $GITHUB_ENV diff --git a/.github/workflows/release-rosetta.yml b/.github/workflows/release-rosetta.yml index 50aef073a5..002976f332 100644 --- a/.github/workflows/release-rosetta.yml +++ b/.github/workflows/release-rosetta.yml @@ -16,7 +16,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true # get 'v*.*.*' part from 'rosetta/v*.*.*' and save to $GITHUB_ENV - name: Set env run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/rosetta/}" >> $GITHUB_ENV diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1306e1f158..10619caa70 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,8 @@ jobs: - name: Install Go uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - name: Unshallow run: git fetch --prune --unshallow - name: Create release diff --git a/.github/workflows/sims-045.yml b/.github/workflows/sims-045.yml index cb9aa9ef9b..f1638c67f6 100644 --- a/.github/workflows/sims-045.yml +++ b/.github/workflows/sims-045.yml @@ -21,7 +21,8 @@ jobs: ref: "release/v0.45.x" - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - run: make build install-runsim: @@ -32,7 +33,8 @@ jobs: steps: - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - name: Install runsim run: go install github.com/cosmos/tools/cmd/runsim@v1.0.0 - uses: actions/cache@v3 @@ -49,7 +51,8 @@ jobs: ref: "release/v0.45.x" - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - uses: actions/cache@v3 with: path: ~/go/bin @@ -67,7 +70,8 @@ jobs: ref: "release/v0.45.x" - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - uses: actions/cache@v3 with: path: ~/go/bin @@ -86,7 +90,8 @@ jobs: ref: "release/v0.45.x" - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - uses: actions/cache@v3 with: path: ~/go/bin diff --git a/.github/workflows/sims-046.yml b/.github/workflows/sims-046.yml index 50a539f910..cbc0fead88 100644 --- a/.github/workflows/sims-046.yml +++ b/.github/workflows/sims-046.yml @@ -21,7 +21,8 @@ jobs: ref: "release/v0.46.x" - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - run: make build install-runsim: @@ -32,7 +33,8 @@ jobs: steps: - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - name: Install runsim run: go install github.com/cosmos/tools/cmd/runsim@v1.0.0 - uses: actions/cache@v3 @@ -50,7 +52,8 @@ jobs: ref: "release/v0.46.x" - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - uses: actions/cache@v3 with: path: ~/go/bin @@ -68,7 +71,8 @@ jobs: ref: "release/v0.46.x" - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - uses: actions/cache@v3 with: path: ~/go/bin @@ -86,7 +90,8 @@ jobs: ref: "release/v0.46.x" - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - uses: actions/cache@v3 with: path: ~/go/bin diff --git a/.github/workflows/sims-047.yml b/.github/workflows/sims-047.yml index d89583ea44..cc19982df9 100644 --- a/.github/workflows/sims-047.yml +++ b/.github/workflows/sims-047.yml @@ -21,7 +21,8 @@ jobs: ref: "release/v0.47.x" - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - run: make build install-runsim: @@ -32,7 +33,8 @@ jobs: steps: - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - name: Install runsim run: go install github.com/cosmos/tools/cmd/runsim@v1.0.0 - uses: actions/cache@v3 @@ -50,7 +52,8 @@ jobs: ref: "release/v0.47.x" - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - uses: actions/cache@v3 with: path: ~/go/bin @@ -68,7 +71,8 @@ jobs: ref: "release/v0.47.x" - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - uses: actions/cache@v3 with: path: ~/go/bin @@ -86,7 +90,8 @@ jobs: ref: "release/v0.47.x" - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - uses: actions/cache@v3 with: path: ~/go/bin diff --git a/.github/workflows/sims-nightly.yml b/.github/workflows/sims-nightly.yml index 12c89b1d41..0a88662da6 100644 --- a/.github/workflows/sims-nightly.yml +++ b/.github/workflows/sims-nightly.yml @@ -22,7 +22,8 @@ jobs: steps: - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - name: Install runsim run: go install github.com/cosmos/tools/cmd/runsim@v1.0.0 - uses: actions/cache@v3 @@ -36,7 +37,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - uses: actions/cache@v3 with: path: ~/go/bin diff --git a/.github/workflows/sims.yml b/.github/workflows/sims.yml index 850d714b60..1c4bb1cb3a 100644 --- a/.github/workflows/sims.yml +++ b/.github/workflows/sims.yml @@ -21,7 +21,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - run: make build - name: Install runsim run: go install github.com/cosmos/tools/cmd/runsim@v1.0.0 @@ -38,7 +39,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - uses: actions/cache@v3 with: path: ~/go/bin @@ -54,7 +56,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - uses: actions/cache@v3 with: path: ~/go/bin @@ -71,7 +74,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - uses: actions/cache@v3 with: path: ~/go/bin diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3d94d8cd3c..92b0dc9b1d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true - name: Create a file with all core Cosmos SDK pkgs run: go list ./... > pkgs.txt - name: Split pkgs into 4 files @@ -53,7 +54,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -86,7 +88,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -116,7 +119,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -193,7 +197,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -222,7 +227,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -254,7 +260,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: client/v2/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -284,7 +291,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: core/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -314,7 +322,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: depinject/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -342,7 +351,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: errors/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -372,7 +382,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: math/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -402,7 +413,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: simapp/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -438,7 +450,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: tools/rosetta/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -472,7 +485,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: collections/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -502,7 +516,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: orm/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -532,7 +547,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: tools/cosmovisor/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -562,7 +578,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: tools/confix/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -592,7 +609,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: tools/hubl/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -622,7 +640,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: store/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -652,7 +671,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: log/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -689,7 +709,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: x/tx/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -719,7 +740,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: x/nft/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -749,7 +771,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: x/circuit/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -779,7 +802,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: x/feegrant/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -809,7 +833,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: x/evidence/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -838,7 +863,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20.3 + go-version: "1.20" + check-latest: true cache: true cache-dependency-path: x/upgrade/go.sum - uses: technote-space/get-diff-action@v6.1.2 diff --git a/simapp/app_v2.go b/simapp/app_v2.go index 97859ebbb5..635f388eac 100644 --- a/simapp/app_v2.go +++ b/simapp/app_v2.go @@ -260,7 +260,7 @@ func (app *SimApp) AppCodec() codec.Codec { return app.appCodec } -// InterfaceRegistry returns SimApp's InterfaceRegistry +// InterfaceRegistry returns SimApp's InterfaceRegistry. func (app *SimApp) InterfaceRegistry() codectypes.InterfaceRegistry { return app.interfaceRegistry }