Skip to content

Commit

Permalink
build(deps): update golang to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Oct 30, 2023
1 parent a226dc9 commit d00af97
Show file tree
Hide file tree
Showing 14 changed files with 56 additions and 19 deletions.
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
2 changes: 1 addition & 1 deletion .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 Down
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
4 changes: 2 additions & 2 deletions docs/tutorials/go.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ 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
```

## 1.2 Creating a new Go project
Expand Down 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
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/dashpay/tenderdash

go 1.19
go 1.21

require (
github.com/BurntSushi/toml v1.2.0
Expand Down
Loading

0 comments on commit d00af97

Please sign in to comment.