Skip to content

Commit

Permalink
imp(deps): use Go 1.18 (#714)
Browse files Browse the repository at this point in the history
* fix(ci): fix localnet

* imp(deps): use Go 1.18

* changelog

* disable linters
  • Loading branch information
ranupthestairs committed Jun 23, 2022
1 parent 68e2d5d commit 6080489
Show file tree
Hide file tree
Showing 14 changed files with 54 additions and 132 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.18
check-latest: true
- uses: technote-space/[email protected]
id: git_diff
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.18
check-latest: true
- name: release dry run
run: make release-dry-run
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.18
check-latest: true
- name: Display Go Version
run: go version
Expand All @@ -37,7 +37,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.18
check-latest: true
- uses: actions/checkout@v3
- uses: technote-space/[email protected]
Expand Down
12 changes: 6 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ run:

linters:
enable:
- bodyclose
# - bodyclose
- deadcode
- depguard
- dogsled
Expand All @@ -27,11 +27,11 @@ linters:
- prealloc
- exportloopref
- staticcheck
- structcheck
# - structcheck
- stylecheck
- typecheck
- unconvert
- unparam
# - unparam
- unused
- varcheck
# - nolintlint
Expand All @@ -42,8 +42,8 @@ linters:
- gomodguard
# - nestif
# - nlreturn
- noctx
- rowserrcheck
# - noctx
# - rowserrcheck
# - whitespace
# - wsl

Expand Down Expand Up @@ -72,7 +72,7 @@ linters-settings:
require-explanation: false
require-specific: false
gofumpt:
lang-version: "1.17"
lang-version: "1.18"
gomodguard:
blocked:
versions: # List of blocked module version constraints
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ Ref: https://keepachangelog.com/en/1.0.0/

### API Breaking

- (all) [\#701](https://github.com/evmos/evmos/pull/703) Rename Go module to `evmos/evmos`
- (fees) [\#691](https://github.com/evmos/evmos/pull/691) Internal API audit.

### Improvements

- (deps) [\#714](https://github.com/evmos/evmos/pull/714) Bump Go version to `1.18`.
- (cmd) [\#696](https://github.com/evmos/evmos/pull/696) Set a custom tendermint node configuration on initialization.
- (fees) [\#685](https://github.com/evmos/evmos/pull/685) Internal Specification audit.

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ localnet-show-logstream:
###############################################################################

PACKAGE_NAME:=github.com/evmos/evmos
GOLANG_CROSS_VERSION = v1.17.1
GOLANG_CROSS_VERSION = v1.18
GOPATH ?= '$(HOME)/go'
release-dry-run:
docker run \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ parent:
Evmos is a scalable, high-throughput Proof-of-Stake blockchain that is fully compatible and
interoperable with Ethereum. It's built using the [Cosmos SDK](https://github.com/cosmos/cosmos-sdk/) which runs on top of [Tendermint Core](https://github.com/tendermint/tendermint) consensus engine.

**Note**: Requires [Go 1.17.5+](https://golang.org/dl/)
**Note**: Requires [Go 1.18+](https://golang.org/dl/)

## Installation

Expand Down
2 changes: 1 addition & 1 deletion app/upgrades/v5/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,6 @@ func UpdateSlashingParams(ctx sdk.Context, xk slashingkeeper.Keeper) {
params.SignedBlocksWindow = 30000
}
// if chain doesn't match, this is basically a no-op

xk.SetParams(ctx, params)
}
2 changes: 1 addition & 1 deletion docs/developers/json-rpc/endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ Get the web3 client version.
#### Result

```json
{"jsonrpc":"2.0","id":1,"result":"Evmos/0.1.3+/linux/go1.17"}
{"jsonrpc":"2.0","id":1,"result":"Evmos/0.1.3+/linux/go1.18"}
```

#### Client Examples
Expand Down
4 changes: 2 additions & 2 deletions docs/validators/quickstart/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ Build and install the Evmos binaries from source or using Docker. {synopsis}

## Pre-requisites

- [Install Go 1.17.5+](https://golang.org/dl/) {prereq}
- [Install Go 1.18.5+](https://golang.org/dl/) {prereq}
- [Install jq](https://stedolan.github.io/jq/download/) {prereq}

## Install Go

::: warning
Evmos is built using [Go](https://golang.org/dl/) version `1.17.5+`
Evmos is built using [Go](https://golang.org/dl/) version `1.18+`
:::

```bash
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/evmos/evmos/v5

go 1.17
go 1.18

require (
github.com/armon/go-metrics v0.4.0
Expand Down
115 changes: 0 additions & 115 deletions go.sum

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions networks/local/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
all:
docker build --no-cache --tag evmos/node ../.. -f evmos/Dockerfile

.PHONY: all
31 changes: 31 additions & 0 deletions networks/local/evmos/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM golang:stretch as build-env

# Install minimum necessary dependencies
ENV PACKAGES curl make git libc-dev bash gcc
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y $PACKAGES

# Set working directory for the build
WORKDIR /go/src/github.com/evmos/evmos

# Add source files
COPY . .

# build Ethermint
RUN make build-linux

# Final image
FROM golang:1.18 as final

WORKDIR /

RUN apt-get update

# Copy over binaries from the build-env
COPY --from=build-env /go/src/github.com/evmos/evmos/build/evmosd /
COPY --from=build-env /go/src/github.com/evmos/evmos/scripts/start-docker.sh /

EXPOSE 26656 26657 1317 8545 8546

# Run evmosd by default, omit entrypoint to ease using container with evmosd
ENTRYPOINT ["/bin/bash", "-c"]

0 comments on commit 6080489

Please sign in to comment.