Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): update golang to 1.21 #716

Merged
merged 2 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/bls/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ runs:
steps:
- uses: actions/setup-go@v2
with:
go-version: "1.19"
go-version: "1.21"
- uses: actions/checkout@v2
with:
submodules: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/[email protected]
with:
go-version: "1.19"
go-version: "1.21"
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
with:
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
steps:
- uses: actions/[email protected]
with:
go-version: "1.19"
go-version: "1.21"
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
with:
Expand All @@ -79,7 +79,7 @@ jobs:
steps:
- uses: actions/[email protected]
with:
go-version: "1.19"
go-version: "1.21"
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/[email protected]
with:
go-version: "1.19"
go-version: "1.21"

- uses: actions/checkout@v4

Expand All @@ -49,7 +49,7 @@ jobs:
steps:
- uses: actions/[email protected]
with:
go-version: "1.19"
go-version: "1.21"

- uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
steps:
- uses: actions/[email protected]
with:
go-version: "1.19"
go-version: "1.21"

- name: Set up Docker Buildx
uses: docker/[email protected]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
submodules: true
- uses: actions/[email protected]
with:
go-version: "^1.19"
go-version: "^1.21"
- uses: technote-space/get-diff-action@v6
with:
PATTERNS: |
Expand All @@ -45,12 +45,12 @@ jobs:
name: Install BLS library
if: "env.GIT_DIFF != ''"

- uses: golangci/golangci-lint-action@v3.4.0
- uses: golangci/golangci-lint-action@v3.7.0
with:
# Required: the version of golangci-lint is required and
# must be specified without patch version: we always use the
# latest patch version.
version: v1.46
version: v1.55
args: --timeout 10m
github-token: ${{ secrets.github_token }}
if: env.GIT_DIFF
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:

- uses: actions/[email protected]
with:
go-version: '1.19'
go-version: "1.21"

- name: Build
uses: goreleaser/goreleaser-action@v5
if: ${{ github.event_name == 'pull_request' }}
with:
version: latest
args: build --skip-validate # skip validate skips initial sanity checks in order to be able to fully run
args: build --skip-validate # skip validate skips initial sanity checks in order to be able to fully run

- run: echo https://github.com/tendermint/tendermint/blob/${GITHUB_REF#refs/tags/}/CHANGELOG.md#${GITHUB_REF#refs/tags/} > ../release_notes.md

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/[email protected]
with:
go-version: "1.19"
go-version: "1.21"
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
with:
Expand Down
2 changes: 1 addition & 1 deletion DOCKER/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# * image - creates final image of minimal size

ARG ALIPNE_VERSION=3.17
ARG GOLANG_VERSION=1.19
ARG GOLANG_VERSION=1.21
#################################
# STAGE 1: install dependencies #
#################################
Expand Down
8 changes: 6 additions & 2 deletions docs/tutorials/go-built-in.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ Verify that you have the latest version of Go installed:

```sh
$ go version
go version go1.19.x darwin/amd64
go version go1.21.x darwin/amd64
```

Note that the exact patch number may differ as Go releases come out.

## 1.2 Creating a new Go project

We'll start by creating a new Go project. First, initialize the project folder with `go mod init`. Running this command should create the `go.mod` file.
Expand Down Expand Up @@ -270,6 +271,7 @@ func (app *KVStoreApplication) DeliverTx(req abcitypes.RequestDeliverTx) abcityp
return abcitypes.ResponseDeliverTx{Code: 0}
}
```

Note that we check the validity of the transaction _again_ during `DeliverTx`.
Transactions are not guaranteed to be valid when they are delivered to an
application. This can happen if the application state is used to determine transaction
Expand Down Expand Up @@ -300,6 +302,7 @@ func (app *KVStoreApplication) Commit() abcitypes.ResponseCommit {
"github.com/dgraph-io/badger/v3"
abcitypes "github.com/tendermint/tendermint/abci/types"
)

```

You may have noticed that the application we are writing will _crash_ if it receives an
Expand Down Expand Up @@ -493,6 +496,7 @@ Next, we create a database handle and use it to construct our ABCI application:
```

Then we construct a logger:

```go
...
logger := tmlog.MustNewDefaultLogger(tmlog.LogFormatPlain, tmlog.LogLevelInfo, false)
Expand Down Expand Up @@ -592,7 +596,7 @@ This will populate the `go.mod` with a release number followed by a hash for Ten
```go
module github.com/<username>/kvstore

go 1.19
go 1.21

require (
github.com/dgraph-io/badger/v3 v3.2103.2
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/go.md
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ This will populate the `go.mod` with a release number followed by a hash for Ten
```go
module github.com/<username>/kvstore

go 1.19
go 1.21

require (
github.com/dgraph-io/badger/v3 v3.2103.2
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/dashpay/tenderdash

go 1.19
go 1.21

require (
github.com/BurntSushi/toml v1.2.0
Expand All @@ -18,7 +18,7 @@ require (
github.com/gogo/protobuf v1.3.2
github.com/golang/protobuf v1.5.2
github.com/golang/snappy v0.0.4 // indirect
github.com/golangci/golangci-lint v1.48.0
github.com/golangci/golangci-lint v1.55.0
github.com/google/btree v1.1.2 // indirect
github.com/google/gopacket v1.1.19
github.com/google/orderedcode v0.0.1
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Stage 1 and 2 is copied from /DOCKER/Dockerfile
ARG ALIPNE_VERSION=3.17
ARG GOLANG_VERSION=1.19
ARG GOLANG_VERSION=1.21
#################################
# STAGE 1: install dependencies #
#################################
Expand Down
2 changes: 1 addition & 1 deletion test/fuzz/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# fuzz

Fuzzing for various packages in Tendermint using the fuzzing infrastructure included in
Go 1.19.
Go 1.21.

Inputs:

Expand Down
Loading