Skip to content

Commit

Permalink
Update cometbft-db Go version to 1.22.5 (#169)
Browse files Browse the repository at this point in the history
* bumped go version to 1.22.5

* ci workflows fetch the go version from an env variable

* fixed path to file exporting go version env var

* fixed path to file exporting go version env var

* fixed path to file exporting go version env var

* updated changelog

* Revert "updated changelog".

This reverts commit 42a9927.
  • Loading branch information
alesforz authored Jul 29, 2024
1 parent 8ff6942 commit 8182c1c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/go-version.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# .github/go-version.env
GO_VERSION=1.22.5
9 changes: 7 additions & 2 deletions .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ jobs:
govulncheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Load Go version
run: echo "GO_VERSION=$(cat .github/workflows/go-version.env | grep GO_VERSION | cut -d '=' -f2)" >> $GITHUB_ENV

- uses: actions/setup-go@v5
with:
go-version: "1.22"
- uses: actions/checkout@v4
go-version: ${{ env.GO_VERSION }}

- uses: technote-space/get-diff-action@v6
with:
PATTERNS: |
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@ jobs:
container: cometbft/cometbft-db-testing
steps:
- uses: actions/checkout@v4

- name: Load Go version
run: echo "GO_VERSION=$(cat .github/workflows/go-version.env | grep GO_VERSION | cut -d '=' -f2)" >> $GITHUB_ENV

- uses: actions/setup-go@v5
with:
go-version: "1.22.2"
go-version: ${{ env.GO_VERSION }}

- uses: golangci/[email protected]
with:
args: --timeout 10m
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/cometbft/cometbft-db

go 1.22.2
go 1.22.5

require (
github.com/cockroachdb/pebble v1.1.1
Expand Down
2 changes: 1 addition & 1 deletion tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# updates here, merge the changes here first and let the image get updated (or
# push a new version manually) before PRs that depend on them.

FROM golang:1.22 AS build
FROM golang:1.22.5 AS build

ENV LD_LIBRARY_PATH=/usr/local/lib

Expand Down

0 comments on commit 8182c1c

Please sign in to comment.