Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 9bae8a8

Browse files
authored
build(deps): bump go minimum version to go 1.19 (cosmos#13397)
1 parent 53519ea commit 9bae8a8

35 files changed

+55
-54
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- uses: actions/checkout@v3
3232
- uses: actions/setup-go@v3
3333
with:
34-
go-version: 1.18
34+
go-version: 1.19
3535
- name: Build
3636
run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false make build
3737
- name: Build Legacy

.github/workflows/codeql-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/checkout@v3
2626
- uses: actions/setup-go@v3
2727
with:
28-
go-version: 1.18
28+
go-version: 1.19
2929
# Initializes the CodeQL tools for scanning.
3030
- name: Initialize CodeQL
3131
uses: github/codeql-action/init@v2

.github/workflows/cosmovisor-release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ permissions:
1010
jobs:
1111
goreleaser:
1212
permissions:
13-
contents: write # for goreleaser/goreleaser-action to create a GitHub release
13+
contents: write # for goreleaser/goreleaser-action to create a GitHub release
1414
runs-on: buildjet-4vcpu-ubuntu-2004
1515
steps:
1616
- uses: actions/checkout@v3
1717
with:
1818
fetch-depth: 0
1919
- uses: actions/setup-go@v3
2020
with:
21-
go-version: 1.18
21+
go-version: 1.19
2222
# get 'v*.*.*' part from 'cosmovisor/v*.*.*' and save to $GITHUB_ENV
2323
- name: Set env
2424
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/cosmovisor/}" >> $GITHUB_ENV

.github/workflows/dependabot-update-all.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
token: ${{ secrets.PRBOT_PAT }}
1818
- uses: actions/setup-go@v3
1919
with:
20-
go-version: 1.18
20+
go-version: 1.19
2121
- name: Extract updated dependency
2222
id: deps
2323
run: |

.github/workflows/dependencies-review.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- uses: actions/setup-go@v3
1212
with:
13-
go-version: 1.18
13+
go-version: 1.19
1414
- name: "Checkout Repository"
1515
uses: actions/checkout@v3
1616
- name: "Dependency Review"

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ permissions:
1313
jobs:
1414
release:
1515
permissions:
16-
contents: write # for goreleaser/goreleaser-action to create a GitHub release
16+
contents: write # for goreleaser/goreleaser-action to create a GitHub release
1717
runs-on: buildjet-4vcpu-ubuntu-2004
1818
steps:
1919
- uses: actions/checkout@v3
2020
- name: Install Go
2121
uses: actions/setup-go@v3
2222
with:
23-
go-version: 1.18
23+
go-version: 1.19
2424
- name: Unshallow
2525
run: git fetch --prune --unshallow
2626
- name: Create release

.github/workflows/sims-045.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
ref: "release/v0.45.x"
2222
- uses: actions/setup-go@v3
2323
with:
24-
go-version: 1.18
24+
go-version: 1.19
2525
- run: make build
2626

2727
install-runsim:
@@ -32,7 +32,7 @@ jobs:
3232
steps:
3333
- uses: actions/setup-go@v3
3434
with:
35-
go-version: 1.18
35+
go-version: 1.19
3636
- name: Install runsim
3737
run: go install github.com/cosmos/tools/cmd/[email protected]
3838
- uses: actions/cache@v3
@@ -49,7 +49,7 @@ jobs:
4949
ref: "release/v0.45.x"
5050
- uses: actions/setup-go@v3
5151
with:
52-
go-version: 1.18
52+
go-version: 1.19
5353
- uses: actions/cache@v3
5454
with:
5555
path: ~/go/bin
@@ -67,7 +67,7 @@ jobs:
6767
ref: "release/v0.45.x"
6868
- uses: actions/setup-go@v3
6969
with:
70-
go-version: 1.18
70+
go-version: 1.19
7171
- uses: actions/cache@v3
7272
with:
7373
path: ~/go/bin
@@ -86,7 +86,7 @@ jobs:
8686
ref: "release/v0.45.x"
8787
- uses: actions/setup-go@v3
8888
with:
89-
go-version: 1.18
89+
go-version: 1.19
9090
- uses: actions/cache@v3
9191
with:
9292
path: ~/go/bin

.github/workflows/sims-046.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
ref: "release/v0.46.x"
2222
- uses: actions/setup-go@v3
2323
with:
24-
go-version: 1.18
24+
go-version: 1.19
2525
- run: make build
2626

2727
install-runsim:
@@ -32,7 +32,7 @@ jobs:
3232
steps:
3333
- uses: actions/setup-go@v3
3434
with:
35-
go-version: 1.18
35+
go-version: 1.19
3636
- name: Install runsim
3737
run: go install github.com/cosmos/tools/cmd/[email protected]
3838
- uses: actions/cache@v3
@@ -50,7 +50,7 @@ jobs:
5050
ref: "release/v0.46.x"
5151
- uses: actions/setup-go@v3
5252
with:
53-
go-version: 1.18
53+
go-version: 1.19
5454
- uses: actions/cache@v3
5555
with:
5656
path: ~/go/bin
@@ -68,7 +68,7 @@ jobs:
6868
ref: "release/v0.46.x"
6969
- uses: actions/setup-go@v3
7070
with:
71-
go-version: 1.18
71+
go-version: 1.19
7272
- uses: actions/cache@v3
7373
with:
7474
path: ~/go/bin
@@ -86,7 +86,7 @@ jobs:
8686
ref: "release/v0.46.x"
8787
- uses: actions/setup-go@v3
8888
with:
89-
go-version: 1.18
89+
go-version: 1.19
9090
- uses: actions/cache@v3
9191
with:
9292
path: ~/go/bin

.github/workflows/sims-nightly.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
steps:
2323
- uses: actions/setup-go@v3
2424
with:
25-
go-version: 1.18
25+
go-version: 1.19
2626
- name: Install runsim
2727
run: go install github.com/cosmos/tools/cmd/[email protected]
2828
- uses: actions/cache@v3
@@ -36,7 +36,7 @@ jobs:
3636
- uses: actions/checkout@v3
3737
- uses: actions/setup-go@v3
3838
with:
39-
go-version: 1.18
39+
go-version: 1.19
4040
- uses: actions/cache@v3
4141
with:
4242
path: ~/go/bin

.github/workflows/sims.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/checkout@v3
2323
- uses: actions/setup-go@v3
2424
with:
25-
go-version: 1.18
25+
go-version: 1.19
2626
- uses: technote-space/[email protected]
2727
with:
2828
PATTERNS: |
@@ -54,7 +54,7 @@ jobs:
5454
- uses: actions/checkout@v3
5555
- uses: actions/setup-go@v3
5656
with:
57-
go-version: 1.18
57+
go-version: 1.19
5858
- uses: actions/cache@v3
5959
with:
6060
path: ~/go/bin
@@ -70,7 +70,7 @@ jobs:
7070
- uses: actions/checkout@v3
7171
- uses: actions/setup-go@v3
7272
with:
73-
go-version: 1.18
73+
go-version: 1.19
7474
- uses: actions/cache@v3
7575
with:
7676
path: ~/go/bin
@@ -87,7 +87,7 @@ jobs:
8787
- uses: actions/checkout@v3
8888
- uses: actions/setup-go@v3
8989
with:
90-
go-version: 1.18
90+
go-version: 1.19
9191
- uses: actions/cache@v3
9292
with:
9393
path: ~/go/bin

.github/workflows/test-e2e.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/checkout@v3
2525
- uses: actions/setup-go@v3
2626
with:
27-
go-version: 1.18
27+
go-version: 1.19
2828
- name: e2e tests
2929
run: |
3030
make test-e2e

.github/workflows/test-integration.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/checkout@v3
2525
- uses: actions/setup-go@v3
2626
with:
27-
go-version: 1.18
27+
go-version: 1.19
2828
- name: integration tests
2929
run: |
3030
make test-integration

.github/workflows/test-legacy.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v3
1818
- uses: actions/setup-go@v3
1919
with:
20-
go-version: 1.18
20+
go-version: 1.19
2121
- name: Run submodule tests and create test coverage profile.
2222
run: bash scripts/module-tests.sh
2323
- uses: actions/upload-artifact@v3
@@ -31,7 +31,7 @@ jobs:
3131
- uses: actions/checkout@v3
3232
- uses: actions/setup-go@v3
3333
with:
34-
go-version: 1.18
34+
go-version: 1.19
3535
- name: Create a file with all core Cosmos SDK pkgs
3636
run: go list ./... > pkgs.txt
3737
- name: Split pkgs into 4 files
@@ -65,7 +65,7 @@ jobs:
6565
- uses: actions/checkout@v3
6666
- uses: actions/setup-go@v3
6767
with:
68-
go-version: 1.18
68+
go-version: 1.19
6969
- uses: actions/download-artifact@v3
7070
with:
7171
name: "${{ github.sha }}-${{ matrix.part }}"

.github/workflows/test.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/checkout@v3
2323
- uses: actions/setup-go@v3
2424
with:
25-
go-version: 1.18
25+
go-version: 1.19
2626
- uses: technote-space/[email protected]
2727
id: git_diff
2828
with:
@@ -55,7 +55,7 @@ jobs:
5555
- uses: actions/checkout@v3
5656
- uses: actions/setup-go@v3
5757
with:
58-
go-version: 1.18
58+
go-version: 1.19
5959
- name: Create a file with all core Cosmos SDK pkgs
6060
run: go list ./... > pkgs.txt
6161
- name: Split pkgs into 4 files
@@ -89,7 +89,7 @@ jobs:
8989
- uses: actions/checkout@v3
9090
- uses: actions/setup-go@v3
9191
with:
92-
go-version: 1.18
92+
go-version: 1.19
9393
- uses: technote-space/[email protected]
9494
with:
9595
PATTERNS: |
@@ -205,7 +205,7 @@ jobs:
205205
- uses: actions/checkout@v3
206206
- uses: actions/setup-go@v3
207207
with:
208-
go-version: 1.18
208+
go-version: 1.19
209209
- uses: technote-space/[email protected]
210210
id: git_diff
211211
with:
@@ -238,7 +238,7 @@ jobs:
238238
- uses: actions/checkout@v3
239239
- uses: actions/setup-go@v3
240240
with:
241-
go-version: 1.18
241+
go-version: 1.19
242242
- uses: technote-space/[email protected]
243243
with:
244244
PATTERNS: |

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
5757

5858
### Improvements
5959

60+
* (deps) [#13397](https://github.com/cosmos/cosmos-sdk/pull/13397) Bump Go version minimum requirement to `1.19`.
6061
* [#13323](https://github.com/cosmos/cosmos-sdk/pull/13323) Ensure `withdraw_rewards` rewards are emitted from all actions that result in rewards being withdrawn.
6162
* [#13214](https://github.com/cosmos/cosmos-sdk/pull/13214) Add `withdraw-proposal` command to group module's CLI transaction commands.
6263
* [#13070](https://github.com/cosmos/cosmos-sdk/pull/13070) Migrate from `gogo/protobuf` to `cosmos/gogoproto`.

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# > docker run -it -p 26657:26657 -p 26656:26656 -v ~/.simappcli:/root/.simapp simapp simd keys add foo
1111
# > docker run -it -p 26657:26657 -p 26656:26656 -v ~/.simappcli:/root/.simapp simapp simd keys list
1212
# TODO: demo connecting rest-server (or is this in server now?)
13-
FROM golang:1.18-alpine AS build-env
13+
FROM golang:1.19-alpine AS build-env
1414

1515
# Install minimum necessary dependencies
1616
ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev python3

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The Cosmos SDK is a framework for building blockchain applications. [Tendermint
4141

4242
**WARNING**: The Cosmos SDK has mostly stabilized, but we are still making some breaking changes.
4343

44-
**Note**: Requires [Go 1.18+](https://go.dev/dl)
44+
**Note**: Requires [Go 1.19+](https://go.dev/dl)
4545

4646
## Quick Start
4747

api/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module cosmossdk.io/api
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
github.com/cosmos/cosmos-proto v1.0.0-alpha7

client/v2/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module cosmossdk.io/client/v2
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
cosmossdk.io/api v0.2.1

contrib/images/simd-dlv/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.18-alpine AS build
1+
FROM golang:1.19-alpine AS build
22

33
RUN apk add build-base git linux-headers libc-dev
44
RUN go install github.com/go-delve/delve/cmd/dlv@latest

contrib/images/simd-env/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.18-alpine AS build
1+
FROM golang:1.19-alpine AS build
22

33
RUN apk add build-base git linux-headers
44

contrib/rosetta/rosetta-ci/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.18-alpine as build
1+
FROM golang:1.19-alpine as build
22

33
RUN apk add --no-cache tar git
44

contrib/rosetta/rosetta-cli/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.18-alpine as build
1+
FROM golang:1.19-alpine as build
22

33
RUN apk add git gcc libc-dev --no-cache
44

core/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module cosmossdk.io/core
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
cosmossdk.io/api v0.2.1

cosmovisor/go.mod

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

3-
go 1.18
3+
go 1.19
44

55
require (
66
github.com/cosmos/cosmos-sdk v0.46.0-beta2.0.20220909113810-4882f933b1a1

depinject/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module cosmossdk.io/depinject
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
github.com/pkg/errors v0.9.1

0 commit comments

Comments
 (0)