diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 59818ad179..ae76a2d21f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - 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 f5dbbdde36..86f5f7227c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -25,7 +25,7 @@ jobs: uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 # 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 50f0731cfe..0a4e94b50a 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@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - name: Extract updated dependency id: deps run: | diff --git a/.github/workflows/dependencies-review.yml b/.github/workflows/dependencies-review.yml index f8a116f80c..66b51405ee 100644 --- a/.github/workflows/dependencies-review.yml +++ b/.github/workflows/dependencies-review.yml @@ -10,7 +10,7 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - name: "Checkout Repository" uses: actions/checkout@v3 - name: "Dependency Review" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ef189d5b2b..a78cba7226 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,10 +16,10 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - uses: actions/checkout@v3 - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version - version: v1.50.0 + version: v1.51.1 diff --git a/.github/workflows/release-confix.yml b/.github/workflows/release-confix.yml index 354874bdc6..ed732383c2 100644 --- a/.github/workflows/release-confix.yml +++ b/.github/workflows/release-confix.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 # 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 66bbd3417a..148971b8cc 100644 --- a/.github/workflows/release-cosmovisor.yml +++ b/.github/workflows/release-cosmovisor.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 # 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 e41036e764..3b60404558 100644 --- a/.github/workflows/release-rosetta.yml +++ b/.github/workflows/release-rosetta.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 # 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 43b243b95a..ed5cca2139 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: - name: Install Go uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - 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 ae5864fd8a..daaa67b35a 100644 --- a/.github/workflows/sims-045.yml +++ b/.github/workflows/sims-045.yml @@ -21,7 +21,7 @@ jobs: ref: "release/v0.45.x" - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - run: make build install-runsim: @@ -32,7 +32,7 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - name: Install runsim run: go install github.com/cosmos/tools/cmd/runsim@v1.0.0 - uses: actions/cache@v3 @@ -49,7 +49,7 @@ jobs: ref: "release/v0.45.x" - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - uses: actions/cache@v3 with: path: ~/go/bin @@ -67,7 +67,7 @@ jobs: ref: "release/v0.45.x" - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - uses: actions/cache@v3 with: path: ~/go/bin @@ -86,7 +86,7 @@ jobs: ref: "release/v0.45.x" - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - uses: actions/cache@v3 with: path: ~/go/bin diff --git a/.github/workflows/sims-046.yml b/.github/workflows/sims-046.yml index 7226ca491c..2c65fdbeb0 100644 --- a/.github/workflows/sims-046.yml +++ b/.github/workflows/sims-046.yml @@ -21,7 +21,7 @@ jobs: ref: "release/v0.46.x" - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - run: make build install-runsim: @@ -32,7 +32,7 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - name: Install runsim run: go install github.com/cosmos/tools/cmd/runsim@v1.0.0 - uses: actions/cache@v3 @@ -50,7 +50,7 @@ jobs: ref: "release/v0.46.x" - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - uses: actions/cache@v3 with: path: ~/go/bin @@ -68,7 +68,7 @@ jobs: ref: "release/v0.46.x" - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - uses: actions/cache@v3 with: path: ~/go/bin @@ -86,7 +86,7 @@ jobs: ref: "release/v0.46.x" - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - uses: actions/cache@v3 with: path: ~/go/bin diff --git a/.github/workflows/sims-047.yml b/.github/workflows/sims-047.yml index 481700f6ff..3d789c6b57 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@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - run: make build install-runsim: @@ -32,7 +32,7 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - name: Install runsim run: go install github.com/cosmos/tools/cmd/runsim@v1.0.0 - uses: actions/cache@v3 @@ -50,7 +50,7 @@ jobs: ref: "release/v0.47.x" - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - uses: actions/cache@v3 with: path: ~/go/bin @@ -68,7 +68,7 @@ jobs: ref: "release/v0.47.x" - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - uses: actions/cache@v3 with: path: ~/go/bin @@ -86,7 +86,7 @@ jobs: ref: "release/v0.47.x" - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - uses: actions/cache@v3 with: path: ~/go/bin diff --git a/.github/workflows/sims-nightly.yml b/.github/workflows/sims-nightly.yml index 7da10ff76e..2fa419bae1 100644 --- a/.github/workflows/sims-nightly.yml +++ b/.github/workflows/sims-nightly.yml @@ -22,7 +22,7 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - name: Install runsim run: go install github.com/cosmos/tools/cmd/runsim@v1.0.0 - uses: actions/cache@v3 @@ -36,7 +36,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - uses: actions/cache@v3 with: path: ~/go/bin diff --git a/.github/workflows/sims.yml b/.github/workflows/sims.yml index a7201e9bbf..330ade52da 100644 --- a/.github/workflows/sims.yml +++ b/.github/workflows/sims.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - run: make build - name: Install runsim run: go install github.com/cosmos/tools/cmd/runsim@v1.0.0 @@ -38,7 +38,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - uses: actions/cache@v3 with: path: ~/go/bin @@ -54,7 +54,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - uses: actions/cache@v3 with: path: ~/go/bin @@ -71,7 +71,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - uses: actions/cache@v3 with: path: ~/go/bin diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bf75e7e945..ff1c059e77 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 - name: Create a file with all core Cosmos SDK pkgs run: go list ./... > pkgs.txt - name: Split pkgs into 4 files @@ -52,7 +52,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -83,7 +83,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -113,7 +113,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -190,7 +190,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -219,7 +219,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -251,7 +251,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: client/v2/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -281,7 +281,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: core/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -311,7 +311,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: depinject/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -339,7 +339,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: errors/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -369,7 +369,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: math/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -399,7 +399,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: simapp/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -435,7 +435,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: tools/rosetta/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -469,7 +469,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: collections/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -499,7 +499,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: tools/cosmovisor/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -529,7 +529,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: tools/confix/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -559,7 +559,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: tools/hubl/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -589,7 +589,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: store/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -619,7 +619,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: log/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -656,7 +656,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: x/tx/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -686,7 +686,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: x/nft/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -716,7 +716,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: x/circuit/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -746,7 +746,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: x/feegrant/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -776,7 +776,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: x/evidence/go.sum - uses: technote-space/get-diff-action@v6.1.2 @@ -805,7 +805,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19.4 + go-version: 1.20.0 cache: true cache-dependency-path: x/upgrade/go.sum - uses: technote-space/get-diff-action@v6.1.2 diff --git a/Dockerfile b/Dockerfile index 6bf838809b..4e965fe0f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ # TODO: demo connecting rest-server (or is this in server now?) # bullseye already comes with build dependencies, so we don't need anything extra to install -FROM --platform=$BUILDPLATFORM golang:1.19-bullseye AS build-env +FROM --platform=$BUILDPLATFORM golang:1.20-bullseye AS build-env # Set working directory for the build WORKDIR /go/src/github.com/cosmos/cosmos-sdk @@ -21,6 +21,7 @@ WORKDIR /go/src/github.com/cosmos/cosmos-sdk COPY go.mod go.sum ./ COPY collections/go.mod collections/go.sum ./collections/ COPY store/go.mod store/go.sum ./store/ +COPY log/go.mod log/go.sum ./log/ RUN go mod download diff --git a/Makefile b/Makefile index baef621db2..67762f6f64 100644 --- a/Makefile +++ b/Makefile @@ -349,7 +349,7 @@ benchmark: ############################################################################### golangci_lint_cmd=golangci-lint -golangci_version=v1.50.1 +golangci_version=v1.51.1 lint: @echo "--> Running linter" diff --git a/README.md b/README.md index cb7c76d995..21e67c11d8 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ The Cosmos SDK is a framework for building blockchain applications. [CometBFT (B **WARNING**: The Cosmos SDK has mostly stabilized, but we are still making some breaking changes. -**Note**: Requires [Go 1.19+](https://go.dev/dl) +**Note**: Requires [Go 1.20+](https://go.dev/dl) ## Quick Start diff --git a/contrib/devtools/Dockerfile b/contrib/devtools/Dockerfile index f318fd023b..570562e08b 100644 --- a/contrib/devtools/Dockerfile +++ b/contrib/devtools/Dockerfile @@ -3,7 +3,7 @@ # docker run --rm -v $(pwd):/workspace --workdir /workspace cosmossdk-proto sh ./scripts/protocgen.sh FROM bufbuild/buf:1.13.1 as BUILDER -FROM golang:1.19-alpine +FROM golang:1.20-alpine RUN apk add --no-cache \ nodejs \ diff --git a/contrib/images/simd-dlv/Dockerfile b/contrib/images/simd-dlv/Dockerfile index 02df29c584..9db0c901e3 100644 --- a/contrib/images/simd-dlv/Dockerfile +++ b/contrib/images/simd-dlv/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19-alpine AS build +FROM golang:1.20-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 00b1783422..aecdbc8b26 100644 --- a/contrib/images/simd-env/Dockerfile +++ b/contrib/images/simd-env/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19-alpine AS build +FROM golang:1.20-alpine AS build RUN apk add build-base git linux-headers diff --git a/contrib/rosetta/rosetta-ci/Dockerfile b/contrib/rosetta/rosetta-ci/Dockerfile index a255f0171b..165d0d0f0a 100644 --- a/contrib/rosetta/rosetta-ci/Dockerfile +++ b/contrib/rosetta/rosetta-ci/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19-alpine as build +FROM golang:1.20-alpine as build RUN apk add git tar gcc libc-dev --no-cache diff --git a/go.mod b/go.mod index 93df18c54d..dd5f33dd45 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -go 1.19 +go 1.20 module github.com/cosmos/cosmos-sdk diff --git a/go.work.example b/go.work.example index a4fd9c9524..e93f4caff3 100644 --- a/go.work.example +++ b/go.work.example @@ -1,4 +1,4 @@ -go 1.19 +go 1.20 use ( . diff --git a/simapp/go.mod b/simapp/go.mod index 13b25114e7..f6da7302b0 100644 --- a/simapp/go.mod +++ b/simapp/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/simapp -go 1.19 +go 1.20 require ( cosmossdk.io/api v0.3.0 diff --git a/tests/go.mod b/tests/go.mod index bcadf5d562..15ac72f02b 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -1,6 +1,6 @@ module github.com/cosmos/cosmos-sdk/tests -go 1.19 +go 1.20 require ( cosmossdk.io/api v0.3.0 diff --git a/tools/cosmovisor/go.mod b/tools/cosmovisor/go.mod index e21f46886f..fb5456b1ce 100644 --- a/tools/cosmovisor/go.mod +++ b/tools/cosmovisor/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/tools/cosmovisor -go 1.19 +go 1.20 require ( cosmossdk.io/log v0.0.0-00010101000000-000000000000 diff --git a/tools/hubl/go.mod b/tools/hubl/go.mod index 571683e238..a1c2022afa 100644 --- a/tools/hubl/go.mod +++ b/tools/hubl/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/tools/hubl -go 1.19 +go 1.20 require ( cosmossdk.io/api v0.3.0