From e5e180de1f969fca8b2afb57f7a94efd17c1bb0a Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Tue, 13 Aug 2024 23:15:25 +0200 Subject: [PATCH 1/8] build(deps): use Go 1.23 instead of Go 1.22 --- .github/workflows/build.yml | 2 +- .github/workflows/codeql-analysis.yml | 4 +- .github/workflows/dependabot-update-all.yml | 2 +- .github/workflows/dependencies-review.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/pr-go-mod-tidy-mocks.yml | 4 +- .github/workflows/release-confix.yml | 2 +- .github/workflows/release-cosmovisor.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/sims-047.yml | 10 +-- .github/workflows/sims-050.yml | 10 +-- .github/workflows/sims-052.yml | 10 +-- .github/workflows/sims-nightly.yml | 2 +- .github/workflows/sims.yml | 10 +-- .github/workflows/software-compat-v052.yml | 2 +- .github/workflows/test.yml | 76 ++++++++++----------- .github/workflows/v2-test.yml | 8 +-- Dockerfile | 2 +- client/v2/go.mod | 2 +- contrib/devtools/Dockerfile | 4 +- contrib/images/simd-dlv/Dockerfile | 2 +- contrib/images/simd-env/Dockerfile | 2 +- flake.nix | 2 +- go.mod | 2 +- go.work.example | 2 +- indexer/postgres/tests/go.mod | 4 +- runtime/v2/go.mod | 2 +- schema/testing/go.mod | 4 +- server/v2/cometbft/go.mod | 2 +- simapp/go.mod | 2 +- simapp/v2/go.mod | 2 +- tests/go.mod | 2 +- tests/systemtests/go.mod | 2 +- tools/cosmovisor/go.mod | 2 +- x/accounts/defaults/lockup/go.mod | 2 +- x/accounts/defaults/multisig/go.mod | 2 +- x/accounts/go.mod | 2 +- x/auth/go.mod | 2 +- x/authz/go.mod | 2 +- x/bank/go.mod | 2 +- x/circuit/go.mod | 2 +- x/consensus/go.mod | 2 +- x/distribution/go.mod | 2 +- x/epochs/go.mod | 2 +- x/evidence/go.mod | 2 +- x/feegrant/go.mod | 2 +- x/gov/go.mod | 2 +- x/group/go.mod | 2 +- x/mint/go.mod | 2 +- x/nft/go.mod | 2 +- x/params/go.mod | 2 +- x/protocolpool/go.mod | 2 +- x/slashing/go.mod | 2 +- x/staking/go.mod | 2 +- x/upgrade/go.mod | 2 +- 55 files changed, 116 insertions(+), 116 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4418a28b373a..a5ce144c9f2d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,7 @@ jobs: - uses: DeterminateSystems/magic-nix-cache-action@main - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true ################### #### Build App #### diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ed85efa0d1b8..da75289545b6 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -29,7 +29,7 @@ jobs: uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL @@ -37,7 +37,7 @@ jobs: with: languages: "go" config-file: ./.github/codeql/config.yml - + # If you wish to specify custom queries, you can do so here or in a config file. # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file. diff --git a/.github/workflows/dependabot-update-all.yml b/.github/workflows/dependabot-update-all.yml index 1b50b9ab5de6..f68935443670 100644 --- a/.github/workflows/dependabot-update-all.yml +++ b/.github/workflows/dependabot-update-all.yml @@ -17,7 +17,7 @@ jobs: token: ${{ secrets.PRBOT_PAT }} - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - name: Extract updated dependency id: deps diff --git a/.github/workflows/dependencies-review.yml b/.github/workflows/dependencies-review.yml index 5a08d1c6e0ec..553b6efbf3e9 100644 --- a/.github/workflows/dependencies-review.yml +++ b/.github/workflows/dependencies-review.yml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - name: "Dependency Review" uses: actions/dependency-review-action@v4 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1b61aa2b1748..4b4ce5a76bff 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,7 +18,7 @@ jobs: - uses: DeterminateSystems/magic-nix-cache-action@main - uses: actions/setup-go@v5 with: - go-version: "1.22.2" + go-version: "1.23" check-latest: true - uses: technote-space/get-diff-action@v6.1.2 id: git_diff diff --git a/.github/workflows/pr-go-mod-tidy-mocks.yml b/.github/workflows/pr-go-mod-tidy-mocks.yml index 30f4a697385f..76b5ad1f86f7 100644 --- a/.github/workflows/pr-go-mod-tidy-mocks.yml +++ b/.github/workflows/pr-go-mod-tidy-mocks.yml @@ -20,7 +20,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - name: Run go mod tidy run: ./scripts/go-mod-tidy-all.sh @@ -40,7 +40,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - name: Generate mocks run: make mocks diff --git a/.github/workflows/release-confix.yml b/.github/workflows/release-confix.yml index 2ea64f987853..da465a088103 100644 --- a/.github/workflows/release-confix.yml +++ b/.github/workflows/release-confix.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true # get 'v*.*.*' part from 'confix/v*.*.*' and save to $GITHUB_ENV - name: Set env diff --git a/.github/workflows/release-cosmovisor.yml b/.github/workflows/release-cosmovisor.yml index 0256a4433e18..acef3820e26b 100644 --- a/.github/workflows/release-cosmovisor.yml +++ b/.github/workflows/release-cosmovisor.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true # get 'v*.*.*' part from 'cosmovisor/v*.*.*' and save to $GITHUB_ENV - name: Set env diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ea3521e9e411..962a75136f06 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - name: Unshallow run: git fetch --prune --unshallow diff --git a/.github/workflows/sims-047.yml b/.github/workflows/sims-047.yml index 2115681b3d3d..4a6a0427d751 100644 --- a/.github/workflows/sims-047.yml +++ b/.github/workflows/sims-047.yml @@ -21,7 +21,7 @@ jobs: ref: "release/v0.47.x" - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - run: make build @@ -33,7 +33,7 @@ jobs: steps: - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - name: Install runsim run: go install github.com/cosmos/tools/cmd/runsim@v1.0.0 @@ -52,7 +52,7 @@ jobs: ref: "release/v0.47.x" - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - uses: actions/cache@v4 with: @@ -71,7 +71,7 @@ jobs: ref: "release/v0.47.x" - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - uses: actions/cache@v4 with: @@ -90,7 +90,7 @@ jobs: ref: "release/v0.47.x" - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - uses: actions/cache@v4 with: diff --git a/.github/workflows/sims-050.yml b/.github/workflows/sims-050.yml index e22e8e4aa895..afc04b2a0ea5 100644 --- a/.github/workflows/sims-050.yml +++ b/.github/workflows/sims-050.yml @@ -21,7 +21,7 @@ jobs: ref: "release/v0.50.x" - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - run: make build @@ -33,7 +33,7 @@ jobs: steps: - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - name: Install runsim run: go install github.com/cosmos/tools/cmd/runsim@v1.0.0 @@ -52,7 +52,7 @@ jobs: ref: "release/v0.50.x" - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - uses: actions/cache@v4 with: @@ -71,7 +71,7 @@ jobs: ref: "release/v0.50.x" - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - uses: actions/cache@v4 with: @@ -90,7 +90,7 @@ jobs: ref: "release/v0.50.x" - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - uses: actions/cache@v4 with: diff --git a/.github/workflows/sims-052.yml b/.github/workflows/sims-052.yml index b64d6332b76f..03ee9ef9234e 100644 --- a/.github/workflows/sims-052.yml +++ b/.github/workflows/sims-052.yml @@ -23,7 +23,7 @@ jobs: ref: "release/v0.52.x" - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - run: make build @@ -37,7 +37,7 @@ jobs: ref: "release/v0.52.x" - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - name: test-sim-import-export run: | @@ -53,7 +53,7 @@ jobs: ref: "release/v0.52.x" - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - name: test-sim-after-import run: | @@ -69,7 +69,7 @@ jobs: ref: "release/v0.52.x" - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - name: test-sim-nondeterminism-streaming run: | @@ -85,7 +85,7 @@ jobs: ref: "release/v0.52.x" - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - name: test-sim-multi-seed-short run: | diff --git a/.github/workflows/sims-nightly.yml b/.github/workflows/sims-nightly.yml index a4a1526223fb..35f6232bdf25 100644 --- a/.github/workflows/sims-nightly.yml +++ b/.github/workflows/sims-nightly.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - name: test-sim-multi-seed-long run: | diff --git a/.github/workflows/sims.yml b/.github/workflows/sims.yml index 4b695d79ab4b..bb7cf1faf417 100644 --- a/.github/workflows/sims.yml +++ b/.github/workflows/sims.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - run: make build @@ -33,7 +33,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - name: test-sim-import-export run: | @@ -47,7 +47,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - name: test-sim-after-import run: | @@ -61,7 +61,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - name: test-sim-nondeterminism-streaming run: | @@ -75,7 +75,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - name: test-sim-multi-seed-short run: | diff --git a/.github/workflows/software-compat-v052.yml b/.github/workflows/software-compat-v052.yml index ba6e7cd4b805..c3b6d02c64d7 100644 --- a/.github/workflows/software-compat-v052.yml +++ b/.github/workflows/software-compat-v052.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - name: Test v052 with latest main run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 92c9914c14dc..4aa9196c3833 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - name: Create a file with all core Cosmos SDK pkgs run: go list ./... > pkgs.txt @@ -54,7 +54,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: go.sum @@ -88,7 +88,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: go.sum @@ -119,7 +119,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: go.sum @@ -153,7 +153,7 @@ jobs: fetch-tags: true - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: | @@ -247,7 +247,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: go.sum @@ -280,7 +280,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: client/v2/go.sum @@ -485,7 +485,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" cache: true cache-dependency-path: schema/testing/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -515,7 +515,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" cache: true cache-dependency-path: indexer/postgres/tests/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -551,7 +551,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: simapp/go.sum @@ -579,7 +579,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: go.sum @@ -621,7 +621,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: collections/go.sum @@ -683,7 +683,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: tools/cosmovisor/go.sum @@ -714,7 +714,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: tools/confix/go.sum @@ -745,7 +745,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: tools/hubl/go.sum @@ -813,7 +813,7 @@ jobs: - uses: DeterminateSystems/magic-nix-cache-action@main - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: store/v2/go.sum @@ -882,7 +882,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/accounts/go.sum @@ -913,7 +913,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/accounts/defaults/lockup/go.sum @@ -936,7 +936,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/accounts/multisig/lockup/go.sum @@ -959,7 +959,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/tx/go.sum @@ -990,7 +990,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/nft/go.sum @@ -1021,7 +1021,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/circuit/go.sum @@ -1052,7 +1052,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/distribution/go.sum @@ -1083,7 +1083,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/protocolpool/go.sum @@ -1114,7 +1114,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/feegrant/go.sum @@ -1145,7 +1145,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/evidence/go.sum @@ -1175,7 +1175,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/params/go.sum @@ -1205,7 +1205,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/upgrade/go.sum @@ -1235,7 +1235,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/group/go.sum @@ -1265,7 +1265,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/gov/go.sum @@ -1296,7 +1296,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/slashing/go.sum @@ -1327,7 +1327,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/staking/go.sum @@ -1358,7 +1358,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/auth/go.sum @@ -1389,7 +1389,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/authz/go.sum @@ -1420,7 +1420,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/bank/go.sum @@ -1451,7 +1451,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/mint/go.sum @@ -1482,7 +1482,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/epochs/go.sum @@ -1513,7 +1513,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: x/consensus/go.sum diff --git a/.github/workflows/v2-test.yml b/.github/workflows/v2-test.yml index 9bde9c3f39d1..6896f803a2c1 100644 --- a/.github/workflows/v2-test.yml +++ b/.github/workflows/v2-test.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: go.sum @@ -46,7 +46,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: go.sum @@ -70,7 +70,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: go.sum @@ -94,7 +94,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: go.sum diff --git a/Dockerfile b/Dockerfile index 0302251120fa..9c563258c48d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ # # This image is pushed to the GHCR as https://ghcr.io/cosmos/simapp -FROM golang:1.22-alpine AS build-env +FROM golang:1.23-alpine AS build-env # Install minimum necessary dependencies ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev diff --git a/client/v2/go.mod b/client/v2/go.mod index dfa9a5cea4e2..56448a2ac7b5 100644 --- a/client/v2/go.mod +++ b/client/v2/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/client/v2 -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/contrib/devtools/Dockerfile b/contrib/devtools/Dockerfile index 892bafdb0f73..99d6894af49f 100644 --- a/contrib/devtools/Dockerfile +++ b/contrib/devtools/Dockerfile @@ -2,8 +2,8 @@ # docker build --pull --rm -f "contrib/devtools/Dockerfile" -t cosmossdk-proto:latest "contrib/devtools" # docker run --rm -v $(pwd):/workspace --workdir /workspace cosmossdk-proto sh ./scripts/protocgen.sh -FROM bufbuild/buf:1.24.0 as BUILDER -FROM golang:1.22-alpine +FROM bufbuild/buf:1.36.0 as BUILDER +FROM golang:1.23-alpine RUN apk add --no-cache \ nodejs \ diff --git a/contrib/images/simd-dlv/Dockerfile b/contrib/images/simd-dlv/Dockerfile index 35266f5f271a..684eb55fedab 100644 --- a/contrib/images/simd-dlv/Dockerfile +++ b/contrib/images/simd-dlv/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.22-alpine AS build +FROM golang:1.23-alpine AS build RUN apk add build-base git linux-headers libc-dev RUN go install github.com/go-delve/delve/cmd/dlv@latest diff --git a/contrib/images/simd-env/Dockerfile b/contrib/images/simd-env/Dockerfile index a61aca7c5f12..8ff6675b0379 100644 --- a/contrib/images/simd-env/Dockerfile +++ b/contrib/images/simd-env/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.22-alpine AS build +FROM golang:1.23-alpine AS build RUN apk add build-base git linux-headers diff --git a/flake.nix b/flake.nix index 69569230fc76..4313af441445 100644 --- a/flake.nix +++ b/flake.nix @@ -54,7 +54,7 @@ devShells = rec { default = with pkgs; mkShell { buildInputs = [ - go_1_22 # Use Go 1.22 version + go_1_23 # Use Go 1.23 version rocksdb gomod2nix ]; diff --git a/go.mod b/go.mod index 214743f4495c..3111d0623c97 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -go 1.22.2 +go 1.23.0 module github.com/cosmos/cosmos-sdk diff --git a/go.work.example b/go.work.example index 035cbb3e3496..5fd9c7defa09 100644 --- a/go.work.example +++ b/go.work.example @@ -1,4 +1,4 @@ -go 1.22.2 +go 1.23.0 use ( . diff --git a/indexer/postgres/tests/go.mod b/indexer/postgres/tests/go.mod index 58d26c50693c..d324483904b5 100644 --- a/indexer/postgres/tests/go.mod +++ b/indexer/postgres/tests/go.mod @@ -1,5 +1,7 @@ module cosmossdk.io/indexer/postgres/testing +go 1.23.0 + require ( cosmossdk.io/indexer/postgres v0.0.0-00010101000000-000000000000 cosmossdk.io/schema v0.1.1 @@ -31,5 +33,3 @@ require ( replace cosmossdk.io/indexer/postgres => ../. replace cosmossdk.io/schema => ../../../schema - -go 1.22 diff --git a/runtime/v2/go.mod b/runtime/v2/go.mod index d7d7e2e55c13..056ce39a3472 100644 --- a/runtime/v2/go.mod +++ b/runtime/v2/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/runtime/v2 -go 1.22.2 +go 1.23.0 // server v2 integration replace ( diff --git a/schema/testing/go.mod b/schema/testing/go.mod index e1cfc343bcdf..51ce8d16ea25 100644 --- a/schema/testing/go.mod +++ b/schema/testing/go.mod @@ -1,5 +1,7 @@ module cosmossdk.io/schema/testing +go 1.23.0 + require ( cosmossdk.io/schema v0.0.0 github.com/stretchr/testify v1.9.0 @@ -16,5 +18,3 @@ require ( ) replace cosmossdk.io/schema => ./.. - -go 1.22 diff --git a/server/v2/cometbft/go.mod b/server/v2/cometbft/go.mod index 1705cd080b25..7aef205b8271 100644 --- a/server/v2/cometbft/go.mod +++ b/server/v2/cometbft/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/server/v2/cometbft -go 1.22.2 +go 1.23.0 replace ( cosmossdk.io/api => ../../../api diff --git a/simapp/go.mod b/simapp/go.mod index ac5032b9a94d..aa2477075f8e 100644 --- a/simapp/go.mod +++ b/simapp/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/simapp -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/simapp/v2/go.mod b/simapp/v2/go.mod index e1f174677563..dfd82e381b99 100644 --- a/simapp/v2/go.mod +++ b/simapp/v2/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/simapp/v2 -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/tests/go.mod b/tests/go.mod index 9eea02c21ae0..0d3e8f5171b0 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -1,6 +1,6 @@ module github.com/cosmos/cosmos-sdk/tests -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/tests/systemtests/go.mod b/tests/systemtests/go.mod index 1e2aac2e094d..1ba6cf4cd70a 100644 --- a/tests/systemtests/go.mod +++ b/tests/systemtests/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/tests/systemtests -go 1.22 +go 1.23.0 require ( github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect diff --git a/tools/cosmovisor/go.mod b/tools/cosmovisor/go.mod index fe89a5c39c17..b5651cf3d87a 100644 --- a/tools/cosmovisor/go.mod +++ b/tools/cosmovisor/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/tools/cosmovisor -go 1.22.4 +go 1.23.0 require ( cosmossdk.io/log v1.4.0 diff --git a/x/accounts/defaults/lockup/go.mod b/x/accounts/defaults/lockup/go.mod index 99fb297efb90..a98fb8dcbb3d 100644 --- a/x/accounts/defaults/lockup/go.mod +++ b/x/accounts/defaults/lockup/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/accounts/defaults/lockup -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/collections v0.4.0 diff --git a/x/accounts/defaults/multisig/go.mod b/x/accounts/defaults/multisig/go.mod index 293d1600c1a8..8874055789ba 100644 --- a/x/accounts/defaults/multisig/go.mod +++ b/x/accounts/defaults/multisig/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/accounts/defaults/multisig -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/collections v0.4.0 diff --git a/x/accounts/go.mod b/x/accounts/go.mod index 591ef13d4995..22797a7d7069 100644 --- a/x/accounts/go.mod +++ b/x/accounts/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/accounts -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/x/auth/go.mod b/x/auth/go.mod index fa7dce33b440..d374cb6cbb6a 100644 --- a/x/auth/go.mod +++ b/x/auth/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/auth -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/x/authz/go.mod b/x/authz/go.mod index dbb498409da1..183b121ac643 100644 --- a/x/authz/go.mod +++ b/x/authz/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/authz -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/x/bank/go.mod b/x/bank/go.mod index c66d90604a9f..9eeeaa2f2b3a 100644 --- a/x/bank/go.mod +++ b/x/bank/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/bank -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/x/circuit/go.mod b/x/circuit/go.mod index f61a8657daac..f32aea85c170 100644 --- a/x/circuit/go.mod +++ b/x/circuit/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/circuit -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/x/consensus/go.mod b/x/consensus/go.mod index 925b14f34568..5ae0eb66bc9e 100644 --- a/x/consensus/go.mod +++ b/x/consensus/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/consensus -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/x/distribution/go.mod b/x/distribution/go.mod index cbde93eca925..97e159a33138 100644 --- a/x/distribution/go.mod +++ b/x/distribution/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/distribution -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/x/epochs/go.mod b/x/epochs/go.mod index 5c90cbee043f..2d89b49aa168 100644 --- a/x/epochs/go.mod +++ b/x/epochs/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/epochs -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/x/evidence/go.mod b/x/evidence/go.mod index a087c125a01f..ad91e970c779 100644 --- a/x/evidence/go.mod +++ b/x/evidence/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/evidence -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/x/feegrant/go.mod b/x/feegrant/go.mod index 1d5da9efdedf..e239ba317db3 100644 --- a/x/feegrant/go.mod +++ b/x/feegrant/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/feegrant -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/x/gov/go.mod b/x/gov/go.mod index 97eb51175e44..770d48d1aacd 100644 --- a/x/gov/go.mod +++ b/x/gov/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/gov -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/x/group/go.mod b/x/group/go.mod index a1179a3aa9c4..f00448ddd86d 100644 --- a/x/group/go.mod +++ b/x/group/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/group -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/x/mint/go.mod b/x/mint/go.mod index 5c1a5ca5413f..807ae43816a3 100644 --- a/x/mint/go.mod +++ b/x/mint/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/mint -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/x/nft/go.mod b/x/nft/go.mod index e51597930d4b..dee60d98b134 100644 --- a/x/nft/go.mod +++ b/x/nft/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/nft -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/x/params/go.mod b/x/params/go.mod index 2cd83280cda4..8cb4486f208a 100644 --- a/x/params/go.mod +++ b/x/params/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/params -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/x/protocolpool/go.mod b/x/protocolpool/go.mod index 1eac1a781e93..5842d8b8734e 100644 --- a/x/protocolpool/go.mod +++ b/x/protocolpool/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/protocolpool -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/x/slashing/go.mod b/x/slashing/go.mod index 9c9432e0b5cf..cc93b86c27f9 100644 --- a/x/slashing/go.mod +++ b/x/slashing/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/slashing -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/x/staking/go.mod b/x/staking/go.mod index c172a0ab82c2..a8cd22140e8a 100644 --- a/x/staking/go.mod +++ b/x/staking/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/staking -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/x/upgrade/go.mod b/x/upgrade/go.mod index ea52736446cb..c47a1c40a745 100644 --- a/x/upgrade/go.mod +++ b/x/upgrade/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/upgrade -go 1.22.2 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 From 671ad3fe547ff370f499f609bb153437af54b196 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Tue, 13 Aug 2024 23:17:12 +0200 Subject: [PATCH 2/8] proto-builder --- scripts/build/protobuf.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build/protobuf.mk b/scripts/build/protobuf.mk index 54182e2432f5..a0f42f52f50a 100644 --- a/scripts/build/protobuf.mk +++ b/scripts/build/protobuf.mk @@ -1,4 +1,4 @@ -protoVer=0.14.1 +protoVer=0.15.0 protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer) protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) From 750f5502b7be2b95ddc6a21cf335b86a51156a63 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Wed, 14 Aug 2024 09:52:40 +0200 Subject: [PATCH 3/8] bump core and confix to 1.23 and their dependends --- .github/workflows/test.yml | 6 +++--- client/v2/go.mod | 2 +- collections/go.mod | 4 ++-- core/go.mod | 2 +- core/testing/go.mod | 4 ++-- go.mod | 2 +- orm/go.mod | 2 +- runtime/v2/go.mod | 2 +- server/v2/appmanager/go.mod | 4 ++-- server/v2/cometbft/go.mod | 2 +- server/v2/go.mod | 4 ++-- server/v2/stf/go.mod | 2 +- simapp/go.mod | 2 +- simapp/v2/go.mod | 2 +- store/v2/go.mod | 4 ++-- tests/go.mod | 2 +- tools/confix/go.mod | 2 +- x/accounts/defaults/lockup/go.mod | 2 +- x/accounts/defaults/multisig/go.mod | 2 +- x/accounts/go.mod | 2 +- x/auth/go.mod | 2 +- x/authz/go.mod | 2 +- x/bank/go.mod | 2 +- x/circuit/go.mod | 2 +- x/consensus/go.mod | 2 +- x/distribution/go.mod | 2 +- x/epochs/go.mod | 2 +- x/evidence/go.mod | 2 +- x/feegrant/go.mod | 2 +- x/gov/go.mod | 2 +- x/group/go.mod | 2 +- x/mint/go.mod | 2 +- x/nft/go.mod | 2 +- x/params/go.mod | 2 +- x/protocolpool/go.mod | 2 +- x/slashing/go.mod | 2 +- x/staking/go.mod | 2 +- x/tx/go.mod | 2 +- x/upgrade/go.mod | 2 +- 39 files changed, 46 insertions(+), 46 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4aa9196c3833..bc081663b0c2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -311,7 +311,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.20" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: core/go.sum @@ -341,7 +341,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.20" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: core/testing/go.sum @@ -652,7 +652,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.20" + go-version: "1.23" check-latest: true cache: true cache-dependency-path: orm/go.sum diff --git a/client/v2/go.mod b/client/v2/go.mod index 56448a2ac7b5..07556276e493 100644 --- a/client/v2/go.mod +++ b/client/v2/go.mod @@ -4,7 +4,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/depinject v1.0.0 cosmossdk.io/x/bank v0.0.0-20240226161501-23359a0b6d91 cosmossdk.io/x/gov v0.0.0-20231113122742-912390d5fc4a diff --git a/collections/go.mod b/collections/go.mod index bcb2dff1e7b0..998bd498257e 100644 --- a/collections/go.mod +++ b/collections/go.mod @@ -1,9 +1,9 @@ module cosmossdk.io/collections -go 1.21 +go 1.23.0 require ( - cosmossdk.io/core v0.12.0 + cosmossdk.io/core v1.0.0 cosmossdk.io/core/testing v0.0.0-00010101000000-000000000000 github.com/stretchr/testify v1.9.0 pgregory.net/rapid v1.1.0 diff --git a/core/go.mod b/core/go.mod index 6968f363d26a..f4bbd872b0b8 100644 --- a/core/go.mod +++ b/core/go.mod @@ -3,7 +3,7 @@ module cosmossdk.io/core // Core is meant to have zero dependencies, so we can use it as a dependency // in other modules without having to worry about circular dependencies. -go 1.20 +go 1.23.0 // Version tagged too early and incompatible with v0.50 (latest at the time of tagging) retract v0.12.0 diff --git a/core/testing/go.mod b/core/testing/go.mod index 649d1e97b887..c11693f085e2 100644 --- a/core/testing/go.mod +++ b/core/testing/go.mod @@ -1,10 +1,10 @@ module cosmossdk.io/core/testing -go 1.20 +go 1.23.0 replace cosmossdk.io/core => ../ require ( - cosmossdk.io/core v0.12.0 + cosmossdk.io/core v1.0.0 github.com/tidwall/btree v1.7.0 ) diff --git a/go.mod b/go.mod index 3111d0623c97..b6ca636717cc 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ module github.com/cosmos/cosmos-sdk require ( cosmossdk.io/api v0.7.5 cosmossdk.io/collections v0.4.0 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/core/testing v0.0.0-00010101000000-000000000000 cosmossdk.io/depinject v1.0.0 cosmossdk.io/errors v1.0.1 diff --git a/orm/go.mod b/orm/go.mod index cfc6e672dec4..7873e621a95c 100644 --- a/orm/go.mod +++ b/orm/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/orm -go 1.21 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/runtime/v2/go.mod b/runtime/v2/go.mod index 056ce39a3472..d7889bee1cbc 100644 --- a/runtime/v2/go.mod +++ b/runtime/v2/go.mod @@ -15,7 +15,7 @@ replace ( require ( cosmossdk.io/api v0.7.5 - cosmossdk.io/core v0.12.1-0.20240725072823-6a2d039e1212 + cosmossdk.io/core v1.0.0 cosmossdk.io/depinject v1.0.0 cosmossdk.io/log v1.4.0 cosmossdk.io/server/v2/appmanager v0.0.0-00010101000000-000000000000 diff --git a/server/v2/appmanager/go.mod b/server/v2/appmanager/go.mod index d7ff0bb8ca67..5d1bbda023cc 100644 --- a/server/v2/appmanager/go.mod +++ b/server/v2/appmanager/go.mod @@ -1,7 +1,7 @@ module cosmossdk.io/server/v2/appmanager -go 1.21 +go 1.23.0 replace cosmossdk.io/core => ../../../core -require cosmossdk.io/core v0.12.0 +require cosmossdk.io/core v1.0.0 diff --git a/server/v2/cometbft/go.mod b/server/v2/cometbft/go.mod index 7aef205b8271..d521a485ab2a 100644 --- a/server/v2/cometbft/go.mod +++ b/server/v2/cometbft/go.mod @@ -22,7 +22,7 @@ replace ( require ( buf.build/gen/go/cometbft/cometbft/protocolbuffers/go v1.34.2-20240701160653-fedbb9acfd2f.2 cosmossdk.io/api v0.7.5 - cosmossdk.io/core v0.12.1-0.20240725072823-6a2d039e1212 + cosmossdk.io/core v1.0.0 cosmossdk.io/errors v1.0.1 cosmossdk.io/log v1.4.0 cosmossdk.io/server/v2 v2.0.0-00010101000000-000000000000 diff --git a/server/v2/go.mod b/server/v2/go.mod index 602ffa6cdfa7..fb28147b2272 100644 --- a/server/v2/go.mod +++ b/server/v2/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/server/v2 -go 1.21 +go 1.23.0 replace ( cosmossdk.io/api => ../../api @@ -15,7 +15,7 @@ replace ( require ( cosmossdk.io/api v0.7.5 - cosmossdk.io/core v0.12.1-0.20240725072823-6a2d039e1212 + cosmossdk.io/core v1.0.0 cosmossdk.io/core/testing v0.0.0-00010101000000-000000000000 cosmossdk.io/log v1.4.0 cosmossdk.io/server/v2/appmanager v0.0.0-00010101000000-000000000000 diff --git a/server/v2/stf/go.mod b/server/v2/stf/go.mod index 9196ccc16946..54357e85f653 100644 --- a/server/v2/stf/go.mod +++ b/server/v2/stf/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/server/v2/stf -go 1.21 +go 1.23.0 replace cosmossdk.io/core => ../../../core diff --git a/simapp/go.mod b/simapp/go.mod index aa2477075f8e..619d23639a1f 100644 --- a/simapp/go.mod +++ b/simapp/go.mod @@ -6,7 +6,7 @@ require ( cosmossdk.io/api v0.7.5 cosmossdk.io/client/v2 v2.0.0-20230630094428-02b760776860 cosmossdk.io/collections v0.4.0 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/core/testing v0.0.0-00010101000000-000000000000 // indirect cosmossdk.io/depinject v1.0.0 cosmossdk.io/log v1.4.0 diff --git a/simapp/v2/go.mod b/simapp/v2/go.mod index dfd82e381b99..7b871ebd436a 100644 --- a/simapp/v2/go.mod +++ b/simapp/v2/go.mod @@ -5,7 +5,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 cosmossdk.io/client/v2 v2.0.0-00010101000000-000000000000 - cosmossdk.io/core v0.12.1-0.20240725072823-6a2d039e1212 + cosmossdk.io/core v1.0.0 cosmossdk.io/depinject v1.0.0 cosmossdk.io/log v1.4.0 cosmossdk.io/math v1.3.0 diff --git a/store/v2/go.mod b/store/v2/go.mod index d3f77621445e..9176c44b3bde 100644 --- a/store/v2/go.mod +++ b/store/v2/go.mod @@ -1,9 +1,9 @@ module cosmossdk.io/store/v2 -go 1.21 +go 1.23.0 require ( - cosmossdk.io/core v0.12.1-0.20240725072823-6a2d039e1212 + cosmossdk.io/core v1.0.0 cosmossdk.io/core/testing v0.0.0-00010101000000-000000000000 cosmossdk.io/errors/v2 v2.0.0-20240731132947-df72853b3ca5 cosmossdk.io/log v1.4.0 diff --git a/tests/go.mod b/tests/go.mod index 0d3e8f5171b0..a792877646f9 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -5,7 +5,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 cosmossdk.io/collections v0.4.0 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/depinject v1.0.0 cosmossdk.io/errors v1.0.1 // indirect cosmossdk.io/log v1.4.0 diff --git a/tools/confix/go.mod b/tools/confix/go.mod index 1d9fda986f01..5512b65157b0 100644 --- a/tools/confix/go.mod +++ b/tools/confix/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/tools/confix -go 1.21 +go 1.23.0 require ( github.com/cosmos/cosmos-sdk v0.50.9 diff --git a/x/accounts/defaults/lockup/go.mod b/x/accounts/defaults/lockup/go.mod index a98fb8dcbb3d..d0b8cf173e07 100644 --- a/x/accounts/defaults/lockup/go.mod +++ b/x/accounts/defaults/lockup/go.mod @@ -4,7 +4,7 @@ go 1.23.0 require ( cosmossdk.io/collections v0.4.0 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/x/accounts v0.0.0-20240226161501-23359a0b6d91 cosmossdk.io/x/bank v0.0.0-20240226161501-23359a0b6d91 cosmossdk.io/x/distribution v0.0.0-00010101000000-000000000000 diff --git a/x/accounts/defaults/multisig/go.mod b/x/accounts/defaults/multisig/go.mod index 8874055789ba..b8d666ae3894 100644 --- a/x/accounts/defaults/multisig/go.mod +++ b/x/accounts/defaults/multisig/go.mod @@ -4,7 +4,7 @@ go 1.23.0 require ( cosmossdk.io/collections v0.4.0 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/math v1.3.0 cosmossdk.io/x/accounts v0.0.0-00010101000000-000000000000 cosmossdk.io/x/bank v0.0.0-20240226161501-23359a0b6d91 diff --git a/x/accounts/go.mod b/x/accounts/go.mod index 22797a7d7069..bfebc0acb242 100644 --- a/x/accounts/go.mod +++ b/x/accounts/go.mod @@ -5,7 +5,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 cosmossdk.io/collections v0.4.0 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/core/testing v0.0.0-00010101000000-000000000000 cosmossdk.io/depinject v1.0.0 cosmossdk.io/x/accounts/defaults/multisig v0.0.0-00010101000000-000000000000 diff --git a/x/auth/go.mod b/x/auth/go.mod index d374cb6cbb6a..e65e27eca740 100644 --- a/x/auth/go.mod +++ b/x/auth/go.mod @@ -5,7 +5,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 cosmossdk.io/collections v0.4.0 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/core/testing v0.0.0-00010101000000-000000000000 cosmossdk.io/depinject v1.0.0 cosmossdk.io/errors v1.0.1 diff --git a/x/authz/go.mod b/x/authz/go.mod index 183b121ac643..99e0ffec5dbc 100644 --- a/x/authz/go.mod +++ b/x/authz/go.mod @@ -4,7 +4,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/depinject v1.0.0 cosmossdk.io/errors v1.0.1 cosmossdk.io/math v1.3.0 diff --git a/x/bank/go.mod b/x/bank/go.mod index 9eeeaa2f2b3a..8b7ed6d0cce5 100644 --- a/x/bank/go.mod +++ b/x/bank/go.mod @@ -5,7 +5,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 cosmossdk.io/collections v0.4.0 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/depinject v1.0.0 cosmossdk.io/errors v1.0.1 cosmossdk.io/log v1.4.0 // indirect diff --git a/x/circuit/go.mod b/x/circuit/go.mod index f32aea85c170..b2a43b1fd8a8 100644 --- a/x/circuit/go.mod +++ b/x/circuit/go.mod @@ -5,7 +5,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 cosmossdk.io/collections v0.4.0 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/core/testing v0.0.0-00010101000000-000000000000 cosmossdk.io/depinject v1.0.0 cosmossdk.io/errors v1.0.1 diff --git a/x/consensus/go.mod b/x/consensus/go.mod index 5ae0eb66bc9e..3459a53f2da3 100644 --- a/x/consensus/go.mod +++ b/x/consensus/go.mod @@ -5,7 +5,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 cosmossdk.io/collections v0.4.0 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/core/testing v0.0.0-00010101000000-000000000000 cosmossdk.io/depinject v1.0.0 cosmossdk.io/store v1.1.1-0.20240418092142-896cdf1971bc diff --git a/x/distribution/go.mod b/x/distribution/go.mod index 97e159a33138..e1844da5c7f2 100644 --- a/x/distribution/go.mod +++ b/x/distribution/go.mod @@ -5,7 +5,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 cosmossdk.io/collections v0.4.0 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/core/testing v0.0.0-00010101000000-000000000000 cosmossdk.io/depinject v1.0.0 cosmossdk.io/errors v1.0.1 diff --git a/x/epochs/go.mod b/x/epochs/go.mod index 2d89b49aa168..a48e6375abbd 100644 --- a/x/epochs/go.mod +++ b/x/epochs/go.mod @@ -5,7 +5,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 cosmossdk.io/collections v0.4.0 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/core/testing v0.0.0-00010101000000-000000000000 cosmossdk.io/depinject v1.0.0 cosmossdk.io/errors v1.0.1 diff --git a/x/evidence/go.mod b/x/evidence/go.mod index ad91e970c779..136fee92c6d1 100644 --- a/x/evidence/go.mod +++ b/x/evidence/go.mod @@ -5,7 +5,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 cosmossdk.io/collections v0.4.0 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/core/testing v0.0.0-00010101000000-000000000000 cosmossdk.io/depinject v1.0.0 cosmossdk.io/errors v1.0.1 diff --git a/x/feegrant/go.mod b/x/feegrant/go.mod index e239ba317db3..b310b1ea236c 100644 --- a/x/feegrant/go.mod +++ b/x/feegrant/go.mod @@ -5,7 +5,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 cosmossdk.io/collections v0.4.0 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/core/testing v0.0.0-00010101000000-000000000000 cosmossdk.io/depinject v1.0.0 cosmossdk.io/errors v1.0.1 diff --git a/x/gov/go.mod b/x/gov/go.mod index 770d48d1aacd..9646656b78c8 100644 --- a/x/gov/go.mod +++ b/x/gov/go.mod @@ -5,7 +5,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 cosmossdk.io/collections v0.4.0 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/core/testing v0.0.0-00010101000000-000000000000 cosmossdk.io/depinject v1.0.0 cosmossdk.io/errors v1.0.1 diff --git a/x/group/go.mod b/x/group/go.mod index f00448ddd86d..fb0a385bf05a 100644 --- a/x/group/go.mod +++ b/x/group/go.mod @@ -4,7 +4,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/depinject v1.0.0 cosmossdk.io/errors v1.0.1 cosmossdk.io/log v1.4.0 diff --git a/x/mint/go.mod b/x/mint/go.mod index 807ae43816a3..618746f48427 100644 --- a/x/mint/go.mod +++ b/x/mint/go.mod @@ -5,7 +5,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 cosmossdk.io/collections v0.4.0 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/core/testing v0.0.0-00010101000000-000000000000 cosmossdk.io/depinject v1.0.0 cosmossdk.io/errors v1.0.1 diff --git a/x/nft/go.mod b/x/nft/go.mod index dee60d98b134..b3e2ede21d17 100644 --- a/x/nft/go.mod +++ b/x/nft/go.mod @@ -4,7 +4,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/depinject v1.0.0 cosmossdk.io/errors v1.0.1 cosmossdk.io/log v1.4.0 diff --git a/x/params/go.mod b/x/params/go.mod index 8cb4486f208a..6c495cb6a05f 100644 --- a/x/params/go.mod +++ b/x/params/go.mod @@ -4,7 +4,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/depinject v1.0.0 cosmossdk.io/errors v1.0.1 cosmossdk.io/log v1.4.0 diff --git a/x/protocolpool/go.mod b/x/protocolpool/go.mod index 5842d8b8734e..0ad45057c0d8 100644 --- a/x/protocolpool/go.mod +++ b/x/protocolpool/go.mod @@ -5,7 +5,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 cosmossdk.io/collections v0.4.0 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/core/testing v0.0.0-00010101000000-000000000000 cosmossdk.io/depinject v1.0.0 cosmossdk.io/errors v1.0.1 diff --git a/x/slashing/go.mod b/x/slashing/go.mod index cc93b86c27f9..857395e82cfb 100644 --- a/x/slashing/go.mod +++ b/x/slashing/go.mod @@ -5,7 +5,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 cosmossdk.io/collections v0.4.0 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/core/testing v0.0.0-00010101000000-000000000000 cosmossdk.io/depinject v1.0.0 cosmossdk.io/errors v1.0.1 diff --git a/x/staking/go.mod b/x/staking/go.mod index a8cd22140e8a..b5514430babf 100644 --- a/x/staking/go.mod +++ b/x/staking/go.mod @@ -5,7 +5,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 cosmossdk.io/collections v0.4.0 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/core/testing v0.0.0-00010101000000-000000000000 cosmossdk.io/depinject v1.0.0 cosmossdk.io/errors v1.0.1 diff --git a/x/tx/go.mod b/x/tx/go.mod index f7b2bb91178c..bb124eaa64e0 100644 --- a/x/tx/go.mod +++ b/x/tx/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/tx -go 1.21 +go 1.23.0 require ( cosmossdk.io/api v0.7.5 diff --git a/x/upgrade/go.mod b/x/upgrade/go.mod index c47a1c40a745..90f68af1a041 100644 --- a/x/upgrade/go.mod +++ b/x/upgrade/go.mod @@ -4,7 +4,7 @@ go 1.23.0 require ( cosmossdk.io/api v0.7.5 - cosmossdk.io/core v0.12.1-0.20231114100755-569e3ff6a0d7 + cosmossdk.io/core v1.0.0 cosmossdk.io/core/testing v0.0.0-00010101000000-000000000000 cosmossdk.io/depinject v1.0.0 cosmossdk.io/errors v1.0.1 From 029868bfc279c0e40d517f63c108527e18f1a86c Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Wed, 14 Aug 2024 09:57:43 +0200 Subject: [PATCH 4/8] bump golangci-lint --- scripts/build/linting.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build/linting.mk b/scripts/build/linting.mk index eeeecc484c0a..58d481a235fb 100644 --- a/scripts/build/linting.mk +++ b/scripts/build/linting.mk @@ -1,4 +1,4 @@ -golangci_version=v1.59.0 +golangci_version=v1.60.1 #? setup-pre-commit: Set pre-commit git hook setup-pre-commit: From db23aee76862554d7b58f2acac246191497b097d Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Wed, 14 Aug 2024 10:19:19 +0000 Subject: [PATCH 5/8] `nix --extra-experimental-features nix-command flake --extra-experimental-features flakes update nixpkgs` --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 25cc4479a38a..e442eb8cdd43 100644 --- a/flake.lock +++ b/flake.lock @@ -44,11 +44,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1714656196, - "narHash": "sha256-kjQkA98lMcsom6Gbhw8SYzmwrSo+2nruiTcTZp5jK7o=", + "lastModified": 1723603349, + "narHash": "sha256-VMg6N7MryOuvSJ8Sj6YydarnUCkL7cvMdrMcnsJnJCE=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "94035b482d181af0a0f8f77823a790b256b7c3cc", + "rev": "daf7bb95821b789db24fc1ac21f613db0c1bf2cb", "type": "github" }, "original": { From 0a10db9ce233ef4f8e1184374541daee77038ae9 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Wed, 14 Aug 2024 12:09:53 +0000 Subject: [PATCH 6/8] updates --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bc081663b0c2..99b3d1c1b1ee 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -828,7 +828,7 @@ jobs: if: env.GIT_DIFF run: | cd store/v2 - nix develop .. -c go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock rocksdb' ./... + nix develop ../.. -c go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock rocksdb' ./... - name: sonarcloud if: ${{ env.GIT_DIFF && !github.event.pull_request.draft && env.SONAR_TOKEN != null }} uses: SonarSource/sonarcloud-github-action@master From 0ad4295702086c41fc8101f5e85c7cbe36095064 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Wed, 14 Aug 2024 16:30:09 +0200 Subject: [PATCH 7/8] lint fixes --- client/v2/go.mod | 2 +- collections/go.mod | 2 +- core/go.mod | 2 +- core/testing/go.mod | 2 +- crypto/armor_test.go | 4 ++-- go.mod | 2 +- go.work.example | 2 +- indexer/postgres/tests/go.mod | 2 +- orm/go.mod | 2 +- runtime/v2/go.mod | 2 +- schema/testing/go.mod | 2 +- server/v2/appmanager/go.mod | 2 +- server/v2/cometbft/go.mod | 2 +- server/v2/go.mod | 2 +- server/v2/stf/go.mod | 2 +- simapp/go.mod | 2 +- simapp/v2/go.mod | 2 +- store/v2/go.mod | 2 +- tests/go.mod | 2 +- tests/systemtests/go.mod | 2 +- tools/confix/go.mod | 2 +- tools/cosmovisor/go.mod | 2 +- types/context_test.go | 6 ++++-- x/accounts/defaults/lockup/go.mod | 2 +- x/accounts/defaults/multisig/go.mod | 2 +- x/accounts/go.mod | 2 +- x/auth/go.mod | 2 +- x/authz/go.mod | 2 +- x/bank/go.mod | 2 +- x/circuit/go.mod | 2 +- x/consensus/go.mod | 2 +- x/distribution/go.mod | 2 +- x/epochs/go.mod | 2 +- x/evidence/go.mod | 2 +- x/feegrant/go.mod | 2 +- x/gov/go.mod | 2 +- x/group/go.mod | 2 +- x/mint/go.mod | 2 +- x/nft/go.mod | 2 +- x/params/go.mod | 2 +- x/protocolpool/go.mod | 2 +- x/slashing/go.mod | 2 +- x/staking/go.mod | 2 +- x/tx/go.mod | 2 +- x/upgrade/go.mod | 2 +- 45 files changed, 49 insertions(+), 47 deletions(-) diff --git a/client/v2/go.mod b/client/v2/go.mod index 07556276e493..b054bea7940f 100644 --- a/client/v2/go.mod +++ b/client/v2/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/client/v2 -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/collections/go.mod b/collections/go.mod index 998bd498257e..12cafa6d7150 100644 --- a/collections/go.mod +++ b/collections/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/collections -go 1.23.0 +go 1.23 require ( cosmossdk.io/core v1.0.0 diff --git a/core/go.mod b/core/go.mod index f4bbd872b0b8..8f691cc75063 100644 --- a/core/go.mod +++ b/core/go.mod @@ -3,7 +3,7 @@ module cosmossdk.io/core // Core is meant to have zero dependencies, so we can use it as a dependency // in other modules without having to worry about circular dependencies. -go 1.23.0 +go 1.23 // Version tagged too early and incompatible with v0.50 (latest at the time of tagging) retract v0.12.0 diff --git a/core/testing/go.mod b/core/testing/go.mod index c11693f085e2..0952d63b869a 100644 --- a/core/testing/go.mod +++ b/core/testing/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/core/testing -go 1.23.0 +go 1.23 replace cosmossdk.io/core => ../ diff --git a/crypto/armor_test.go b/crypto/armor_test.go index 45c16bfcc5e1..9d6c2b04b42a 100644 --- a/crypto/armor_test.go +++ b/crypto/armor_test.go @@ -43,7 +43,7 @@ func TestArmorUnarmorPrivKey(t *testing.T) { // empty string decrypted, algo, err = crypto.UnarmorDecryptPrivKey("", "passphrase") require.Error(t, err) - require.True(t, errors.Is(io.EOF, err)) + require.True(t, errors.Is(err, io.EOF)) require.Nil(t, decrypted) require.Empty(t, algo) @@ -165,7 +165,7 @@ func TestArmorInfoBytes(t *testing.T) { func TestUnarmorInfoBytesErrors(t *testing.T) { unarmoredBytes, err := crypto.UnarmorInfoBytes("") require.Error(t, err) - require.True(t, errors.Is(io.EOF, err)) + require.True(t, errors.Is(err, io.EOF)) require.Nil(t, unarmoredBytes) header := map[string]string{ diff --git a/go.mod b/go.mod index b6ca636717cc..39a075f57809 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -go 1.23.0 +go 1.23 module github.com/cosmos/cosmos-sdk diff --git a/go.work.example b/go.work.example index 5fd9c7defa09..834c86da2181 100644 --- a/go.work.example +++ b/go.work.example @@ -1,4 +1,4 @@ -go 1.23.0 +go 1.23 use ( . diff --git a/indexer/postgres/tests/go.mod b/indexer/postgres/tests/go.mod index d324483904b5..72f6701e00bf 100644 --- a/indexer/postgres/tests/go.mod +++ b/indexer/postgres/tests/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/indexer/postgres/testing -go 1.23.0 +go 1.23 require ( cosmossdk.io/indexer/postgres v0.0.0-00010101000000-000000000000 diff --git a/orm/go.mod b/orm/go.mod index 7873e621a95c..0e71a1d2c042 100644 --- a/orm/go.mod +++ b/orm/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/orm -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/runtime/v2/go.mod b/runtime/v2/go.mod index d7889bee1cbc..a9ef3c3241d4 100644 --- a/runtime/v2/go.mod +++ b/runtime/v2/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/runtime/v2 -go 1.23.0 +go 1.23 // server v2 integration replace ( diff --git a/schema/testing/go.mod b/schema/testing/go.mod index 51ce8d16ea25..c2ef15f7a21e 100644 --- a/schema/testing/go.mod +++ b/schema/testing/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/schema/testing -go 1.23.0 +go 1.23 require ( cosmossdk.io/schema v0.0.0 diff --git a/server/v2/appmanager/go.mod b/server/v2/appmanager/go.mod index 5d1bbda023cc..53c6e1c150a5 100644 --- a/server/v2/appmanager/go.mod +++ b/server/v2/appmanager/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/server/v2/appmanager -go 1.23.0 +go 1.23 replace cosmossdk.io/core => ../../../core diff --git a/server/v2/cometbft/go.mod b/server/v2/cometbft/go.mod index d521a485ab2a..7c96dc5c8176 100644 --- a/server/v2/cometbft/go.mod +++ b/server/v2/cometbft/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/server/v2/cometbft -go 1.23.0 +go 1.23 replace ( cosmossdk.io/api => ../../../api diff --git a/server/v2/go.mod b/server/v2/go.mod index fb28147b2272..29121691f946 100644 --- a/server/v2/go.mod +++ b/server/v2/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/server/v2 -go 1.23.0 +go 1.23 replace ( cosmossdk.io/api => ../../api diff --git a/server/v2/stf/go.mod b/server/v2/stf/go.mod index 54357e85f653..a81b46991b26 100644 --- a/server/v2/stf/go.mod +++ b/server/v2/stf/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/server/v2/stf -go 1.23.0 +go 1.23 replace cosmossdk.io/core => ../../../core diff --git a/simapp/go.mod b/simapp/go.mod index 619d23639a1f..61879e5f1c23 100644 --- a/simapp/go.mod +++ b/simapp/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/simapp -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/simapp/v2/go.mod b/simapp/v2/go.mod index 7b871ebd436a..a9ca87cad9a1 100644 --- a/simapp/v2/go.mod +++ b/simapp/v2/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/simapp/v2 -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/store/v2/go.mod b/store/v2/go.mod index 9176c44b3bde..d9eb6d894dfa 100644 --- a/store/v2/go.mod +++ b/store/v2/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/store/v2 -go 1.23.0 +go 1.23 require ( cosmossdk.io/core v1.0.0 diff --git a/tests/go.mod b/tests/go.mod index a792877646f9..39ae6efc5063 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -1,6 +1,6 @@ module github.com/cosmos/cosmos-sdk/tests -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/tests/systemtests/go.mod b/tests/systemtests/go.mod index 1ba6cf4cd70a..039347827725 100644 --- a/tests/systemtests/go.mod +++ b/tests/systemtests/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/tests/systemtests -go 1.23.0 +go 1.23 require ( github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect diff --git a/tools/confix/go.mod b/tools/confix/go.mod index 5512b65157b0..68470fe7046f 100644 --- a/tools/confix/go.mod +++ b/tools/confix/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/tools/confix -go 1.23.0 +go 1.23 require ( github.com/cosmos/cosmos-sdk v0.50.9 diff --git a/tools/cosmovisor/go.mod b/tools/cosmovisor/go.mod index b5651cf3d87a..72b8c1b25b69 100644 --- a/tools/cosmovisor/go.mod +++ b/tools/cosmovisor/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/tools/cosmovisor -go 1.23.0 +go 1.23 require ( cosmossdk.io/log v1.4.0 diff --git a/types/context_test.go b/types/context_test.go index f705bc33c87e..4ee00aac7408 100644 --- a/types/context_test.go +++ b/types/context_test.go @@ -137,7 +137,8 @@ func (s *contextTestSuite) TestContextWithCustom() { s.Require().Equal(cp, ctx.WithConsensusParams(cp).ConsensusParams()) // test inner context - newContext := context.WithValue(ctx.Context(), struct{}{}, "value") + var ctxKey = struct{}{} + newContext := context.WithValue(ctx.Context(), ctxKey, "value") s.Require().NotEqual(ctx.Context(), ctx.WithContext(newContext).Context()) } @@ -225,7 +226,8 @@ func (s *contextTestSuite) TestUnwrapSDKContext() { s.Require().Panics(func() { types.UnwrapSDKContext(ctx) }) // test unwrapping when we've used context.WithValue - ctx = context.WithValue(sdkCtx, struct{}{}, "bar") + var ctxKey = struct{}{} + ctx = context.WithValue(sdkCtx, ctxKey, "bar") sdkCtx2 = types.UnwrapSDKContext(ctx) s.Require().Equal(sdkCtx, sdkCtx2) } diff --git a/x/accounts/defaults/lockup/go.mod b/x/accounts/defaults/lockup/go.mod index d0b8cf173e07..41fd08f36739 100644 --- a/x/accounts/defaults/lockup/go.mod +++ b/x/accounts/defaults/lockup/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/accounts/defaults/lockup -go 1.23.0 +go 1.23 require ( cosmossdk.io/collections v0.4.0 diff --git a/x/accounts/defaults/multisig/go.mod b/x/accounts/defaults/multisig/go.mod index b8d666ae3894..cf32f0b5f182 100644 --- a/x/accounts/defaults/multisig/go.mod +++ b/x/accounts/defaults/multisig/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/accounts/defaults/multisig -go 1.23.0 +go 1.23 require ( cosmossdk.io/collections v0.4.0 diff --git a/x/accounts/go.mod b/x/accounts/go.mod index bfebc0acb242..f99b550d3608 100644 --- a/x/accounts/go.mod +++ b/x/accounts/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/accounts -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/x/auth/go.mod b/x/auth/go.mod index e65e27eca740..dbb920670796 100644 --- a/x/auth/go.mod +++ b/x/auth/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/auth -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/x/authz/go.mod b/x/authz/go.mod index 99e0ffec5dbc..b6e47eebb1bf 100644 --- a/x/authz/go.mod +++ b/x/authz/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/authz -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/x/bank/go.mod b/x/bank/go.mod index 8b7ed6d0cce5..5f6454cb1037 100644 --- a/x/bank/go.mod +++ b/x/bank/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/bank -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/x/circuit/go.mod b/x/circuit/go.mod index b2a43b1fd8a8..e2b101c47eb6 100644 --- a/x/circuit/go.mod +++ b/x/circuit/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/circuit -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/x/consensus/go.mod b/x/consensus/go.mod index 3459a53f2da3..efcd8fa07d17 100644 --- a/x/consensus/go.mod +++ b/x/consensus/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/consensus -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/x/distribution/go.mod b/x/distribution/go.mod index e1844da5c7f2..49843854c3d3 100644 --- a/x/distribution/go.mod +++ b/x/distribution/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/distribution -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/x/epochs/go.mod b/x/epochs/go.mod index a48e6375abbd..d524f6ed3f68 100644 --- a/x/epochs/go.mod +++ b/x/epochs/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/epochs -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/x/evidence/go.mod b/x/evidence/go.mod index 136fee92c6d1..067ee43fab9c 100644 --- a/x/evidence/go.mod +++ b/x/evidence/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/evidence -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/x/feegrant/go.mod b/x/feegrant/go.mod index b310b1ea236c..861d5fbdf5b1 100644 --- a/x/feegrant/go.mod +++ b/x/feegrant/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/feegrant -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/x/gov/go.mod b/x/gov/go.mod index 9646656b78c8..9b783b9a5b35 100644 --- a/x/gov/go.mod +++ b/x/gov/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/gov -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/x/group/go.mod b/x/group/go.mod index fb0a385bf05a..4f4639b39ef3 100644 --- a/x/group/go.mod +++ b/x/group/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/group -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/x/mint/go.mod b/x/mint/go.mod index 618746f48427..d34fe42b414b 100644 --- a/x/mint/go.mod +++ b/x/mint/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/mint -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/x/nft/go.mod b/x/nft/go.mod index b3e2ede21d17..4efb07b8cbb3 100644 --- a/x/nft/go.mod +++ b/x/nft/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/nft -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/x/params/go.mod b/x/params/go.mod index 6c495cb6a05f..b2d432a33f0a 100644 --- a/x/params/go.mod +++ b/x/params/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/params -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/x/protocolpool/go.mod b/x/protocolpool/go.mod index 0ad45057c0d8..a17a73d90382 100644 --- a/x/protocolpool/go.mod +++ b/x/protocolpool/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/protocolpool -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/x/slashing/go.mod b/x/slashing/go.mod index 857395e82cfb..f82afa3e3e59 100644 --- a/x/slashing/go.mod +++ b/x/slashing/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/slashing -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/x/staking/go.mod b/x/staking/go.mod index b5514430babf..134cddf6ae72 100644 --- a/x/staking/go.mod +++ b/x/staking/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/staking -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/x/tx/go.mod b/x/tx/go.mod index bb124eaa64e0..3763212897fb 100644 --- a/x/tx/go.mod +++ b/x/tx/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/tx -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 diff --git a/x/upgrade/go.mod b/x/upgrade/go.mod index 90f68af1a041..e6620f303f33 100644 --- a/x/upgrade/go.mod +++ b/x/upgrade/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/upgrade -go 1.23.0 +go 1.23 require ( cosmossdk.io/api v0.7.5 From 573c99273a65181f1bd2a93b689de69907254fcb Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Wed, 14 Aug 2024 17:29:16 +0200 Subject: [PATCH 8/8] lint --- types/context_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/context_test.go b/types/context_test.go index 4ee00aac7408..81edab5274ba 100644 --- a/types/context_test.go +++ b/types/context_test.go @@ -18,6 +18,8 @@ import ( "github.com/cosmos/cosmos-sdk/types" ) +type dummyCtxKey struct{} + type contextTestSuite struct { suite.Suite } @@ -137,8 +139,7 @@ func (s *contextTestSuite) TestContextWithCustom() { s.Require().Equal(cp, ctx.WithConsensusParams(cp).ConsensusParams()) // test inner context - var ctxKey = struct{}{} - newContext := context.WithValue(ctx.Context(), ctxKey, "value") + newContext := context.WithValue(ctx.Context(), dummyCtxKey{}, "value") s.Require().NotEqual(ctx.Context(), ctx.WithContext(newContext).Context()) } @@ -226,8 +227,7 @@ func (s *contextTestSuite) TestUnwrapSDKContext() { s.Require().Panics(func() { types.UnwrapSDKContext(ctx) }) // test unwrapping when we've used context.WithValue - var ctxKey = struct{}{} - ctx = context.WithValue(sdkCtx, ctxKey, "bar") + ctx = context.WithValue(sdkCtx, dummyCtxKey{}, "bar") sdkCtx2 = types.UnwrapSDKContext(ctx) s.Require().Equal(sdkCtx, sdkCtx2) }