Skip to content

Commit

Permalink
sdk v46 uses go 1.18 (cosmos#1505)
Browse files Browse the repository at this point in the history
* sdk v46 uses go 1.18

* update deps to go 1.18

* go get -> go install

* fix app_test

Co-authored-by: yaruwangway <[email protected]>
  • Loading branch information
faddat and yaruwangway authored Jun 21, 2022
1 parent 4fc3b76 commit 80177b5
Show file tree
Hide file tree
Showing 18 changed files with 153 additions and 167 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.18
- uses: technote-space/[email protected]
with:
PATTERNS: |
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/release-sims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
steps:
- uses: actions/[email protected]
with:
go-version: 1.17
go-version: 1.18
- name: Install runsim
run: export GO111MODULE="on" && go get github.com/cosmos/tools/cmd/[email protected]
- uses: actions/[email protected].4
run: go install github.com/cosmos/tools/cmd/[email protected]
- uses: actions/[email protected].2
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
Expand All @@ -39,9 +39,8 @@ jobs:
needs: build
steps:
- name: install runsim
run: |
export GO111MODULE="on" && go get github.com/cosmos/tools/cmd/[email protected]
- uses: actions/[email protected]
run: go install github.com/cosmos/tools/cmd/[email protected]
- uses: actions/[email protected]
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.18
- name: Set Env
run: echo "TM_VERSION=$(go list -m github.com/tendermint/tendermint | sed 's:.* ::')" >> $GITHUB_ENV
- name: Build
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sim-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
steps:
- uses: actions/[email protected]
with:
go-version: 1.16
go-version: 1.18
- name: Install runsim
run: export GO111MODULE="on" && go get github.com/cosmos/tools/cmd/[email protected]
- uses: actions/[email protected].4
run: go install github.com/cosmos/tools/cmd/[email protected]
- uses: actions/[email protected].2
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/sims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
steps:
- uses: actions/[email protected]
with:
go-version: 1.17
go-version: 1.18
- name: Install runsim
run: export GO111MODULE="on" && go get github.com/cosmos/tools/cmd/[email protected]
run: go install github.com/cosmos/tools/cmd/[email protected]
- uses: actions/[email protected]
with:
path: ~/go/bin
Expand All @@ -33,7 +33,7 @@ jobs:
# - uses: actions/[email protected]
# - uses: actions/[email protected]
# with:
# go-version: 1.17
# go-version: 1.18
# - uses: technote-space/[email protected]
# with:
# PATTERNS: |
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version: 1.17
go-version: 1.18
- uses: actions/[email protected]
with:
path: ~/go/bin
Expand All @@ -80,7 +80,7 @@ jobs:
steps:
- uses: actions/[email protected]
with:
go-version: 1.17
go-version: 1.18
- uses: actions/[email protected]
- uses: technote-space/[email protected]
with:
Expand All @@ -105,7 +105,7 @@ jobs:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version: 1.17
go-version: 1.18
- uses: technote-space/[email protected]
with:
PATTERNS: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- uses: actions/[email protected]
with:
go-version: 1.17
go-version: 1.18
- uses: actions/[email protected]
- uses: technote-space/[email protected]
with:
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
steps:
- uses: actions/[email protected]
with:
go-version: 1.17
go-version: 1.18
- uses: actions/checkout@v2
- uses: technote-space/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:

before:
hooks:
- go mod tidy -compat=1.17
- go mod tidy -compat=1.18

builds:
- main: ./cmd/gaiad
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
# Changelog

## [Unreleased]

* (gaia-rho) Update go to 1.18
* (gaia-rho) Update Liquidity module to v2.0.0-beta1 to work with Cosmos-SDK v0.46.0-beta2
* (gaia-rho) Update [cosmos-sdk](https://github.com/cosmos/cosmos-sdk) to [v0.46.0-beta2](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.46.0-beta2). See [CHANGELOG.md](https://github.com/cosmos/cosmos-sdk/blob/v0.46.0-beta2/CHANGELOG.md) for details.
* (gaia-rho) Add [Groups Module](https://docs.cosmos.network/main/modules/group/#group-module).
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ go.sum: go.mod

draw-deps:
@# requires brew install graphviz or apt-get install graphviz
go get github.com/RobotsAndPencils/goviz
go install github.com/RobotsAndPencils/goviz
@goviz -i ./cmd/gaiad -d 2 | dot -Tpng -o dependency-graph.png

clean:
Expand Down
2 changes: 1 addition & 1 deletion contrib/devtools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ tools-stamp: $(RUNSIM)
runsim: $(RUNSIM)
$(RUNSIM):
@echo "Installing runsim..."
@(cd /tmp && go get github.com/cosmos/tools/cmd/[email protected])
@(cd /tmp && go install github.com/cosmos/tools/cmd/[email protected])

protoc:
@echo "Installing protoc compiler..."
Expand Down
4 changes: 2 additions & 2 deletions contrib/githooks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ that all the aforementioned commands are installed and available
in the user's search `$PATH` environment variable:

```
$ go get golang.org/x/tools/cmd/goimports
$ go get github.com/golangci/misspell/cmd/misspell@master
$ go install golang.org/x/tools/cmd/goimports
$ go install github.com/golangci/misspell/cmd/misspell@master
```

It also runs `go mod tidy` and `golangci-lint` if available.
2 changes: 1 addition & 1 deletion contrib/testnets/remote/terraform-do/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ You can ship logs to Logz.io, an Elastic stack (Elastic search, Logstash and Kib
yum install systemd-devel || echo "This will only work on RHEL-based systems."
apt-get install libsystemd-dev || echo "This will only work on Debian-based systems."
go get github.com/mheese/journalbeat
go install github.com/mheese/journalbeat
ansible-playbook -i inventory/digital_ocean.py -l remotenet logzio.yml -e LOGZIO_TOKEN=ABCDEFGHIJKLMNOPQRSTUVWXYZ012345
```
10 changes: 5 additions & 5 deletions docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ sudo apt-get install -y make gcc
## Install Go

::: tip
**Go 1.17+** or later is required for the Cosmos SDK.
**Go 1.18+** or later is required for the Cosmos SDK.
:::

We suggest the following two ways to install Go. Check out the [official docs](https://golang.org/doc/install) and Go installer for the correct download for your operating system. Alternatively, you can install Go yourself from the command line. Detailed below are standard default installation locations, but feel free to customize.
Expand All @@ -39,11 +39,11 @@ We suggest the following two ways to install Go. Check out the [official docs](h

**Ubuntu:**

At the time of this writing, the latest release is `1.17.4`. We're going to download the tarball, extract it to `/usr/local`, and export `GOROOT` to our `$PATH`
At the time of this writing, the latest release is `1.18.2`. We're going to download the tarball, extract it to `/usr/local`, and export `GOROOT` to our `$PATH`
```bash
curl -OL https://golang.org/dl/go1.17.4.linux-amd64.tar.gz
curl -OL https://golang.org/dl/go1.18.2.linux-amd64.tar.gz

sudo tar -C /usr/local -xvf go1.17.4.linux-amd64.tar.gz
sudo tar -C /usr/local -xvf go1.18.2.linux-amd64.tar.gz

export PATH=$PATH:/usr/local/go/bin

Expand Down Expand Up @@ -97,7 +97,7 @@ server_name: gaiad
version: v7.0.0
commit: 07f9892a927f451ae204d0c9d1a5601d8fc232a5
build_tags: netgo,ledger
go: go version go1.17 linux/amd64
go: go version go1.18 linux/amd64
```

### Build Tags
Expand Down
2 changes: 1 addition & 1 deletion docs/hub-tutorials/join-testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ The following script installs, configures and starts Cosmovisor:

```
# Install Cosmovisor
go get github.com/cosmos/cosmos-sdk/cosmovisor/cmd/cosmovisor
go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/cosmovisor
> NOTE: If you ran a full node on a previous testnet, please skip to [Upgrading From Previous Testnet](#upgrading-from-previous-testnet).
Expand Down
2 changes: 1 addition & 1 deletion docs/hub-tutorials/upgrade-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The Cosmos SDK provides a convenient process manager that wraps around the `gaia
To get started with Cosmovisor first download it

```bash
go get github.com/cosmos/cosmos-sdk/cosmovisor/cmd/cosmovisor
go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/cosmovisor
```

Set up the environment variables
Expand Down
2 changes: 1 addition & 1 deletion e2e.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG IMG_TAG=latest

# Compile the gaiad binary
FROM golang:1.17-alpine AS gaiad-builder
FROM golang:1.18-alpine AS gaiad-builder
WORKDIR /src/app/
COPY go.mod go.sum* ./
RUN go mod download
Expand Down
Loading

0 comments on commit 80177b5

Please sign in to comment.