Skip to content

Commit a8b48c7

Browse files
author
Zachary Becker
authored
chore: relax Go version constraint to 1.23 (#4964)
This PR relaxes to Go version from 1.23 from 1.23.5. This should implicitly use the latest patch version by default, but let dependent modules control of the patch model. Although it's recommended that the latest patch is used in general. This avoids the need to constantly update this value on every Go patch upgrade. Similar change done in cometbft-db here (cometbft/cometbft-db#245) --- #### PR checklist - [x] Tests written/updated - [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [x] Updated relevant documentation (`docs/` or `spec/`) and code comments
1 parent 829e56f commit a8b48c7

10 files changed

Lines changed: 13 additions & 14 deletions

File tree

.github/workflows/go-version.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# .github/workflows/go-version.env
2-
GO_VERSION=1.23.5
2+
GO_VERSION=1.23

DOCKER/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Use a build arg to ensure that both stages use the same,
22
# hopefully current, go version.
3-
ARG GOLANG_BASE_IMAGE=golang:1.23.5-alpine
3+
ARG GOLANG_BASE_IMAGE=golang:1.23-alpine
44

55
# stage 1 Generate CometBFT Binary
66
FROM --platform=$BUILDPLATFORM $GOLANG_BASE_IMAGE AS builder

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Please see [SECURITY.md](./SECURITY.md).
7575

7676
| CometBFT version | Requirement | Version | Tested with |
7777
|------------------|-------------|----------------|--------------|
78-
| main | Go version | 1.23 or higher | up to 1.23.5 |
78+
| main | Go version | 1.23 or higher | up to 1.23.6 |
7979
| v1.x | Go version | 1.23 or higher | up to 1.23.1 |
8080
| v0.38.x | Go version | 1.22 or higher | up to 1.22 |
8181

api/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/cometbft/cometbft/api
22

3-
go 1.23.5
3+
go 1.23
44

55
require (
66
github.com/cosmos/gogoproto v1.4.12

docs/tutorials/go-built-in.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ have installed and the computer platform):
4848

4949
```bash
5050
$ go version
51-
go version go1.23.5 darwin/amd64
51+
go version go1.23.6 darwin/amd64
5252

5353
```
5454

@@ -119,10 +119,9 @@ This should an output similar to this.
119119
```bash
120120
go: creating new go.mod: module kvstore
121121
go: to add module requirements and sums:
122-
go mod tidy
122+
go mod tidy
123123
```
124124

125-
go 1.23.5
126125
Now, lets add `cometbft` as a dependency to our project. Run the `go get` command below:
127126

128127
```bash
@@ -143,7 +142,7 @@ The go.mod file should look similar to:
143142
```go
144143
module kvstore
145144

146-
go 1.23.5
145+
go 1.23
147146

148147
require github.com/cometbft/cometbft v1.0.0 // indirect
149148
```

docs/tutorials/go.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Verify that you have the latest version of Go installed (refer to the [official
4646

4747
```bash
4848
$ go version
49-
go version go1.23.5 darwin/amd64
49+
go version go1.23.6 darwin/amd64
5050
```
5151

5252
## 1.1 Installing CometBFT
@@ -137,7 +137,7 @@ The go.mod file should look similar to:
137137
```go
138138
module kvstore
139139
140-
go 1.23.5
140+
go 1.23
141141
142142
143143
require github.com/cometbft/cometbft v1.0.0 // indirect

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/cometbft/cometbft
22

3-
go 1.23.5
3+
go 1.23
44

55
replace github.com/cometbft/cometbft/api => ./api
66

go.work

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
go 1.23.5
1+
go 1.23
22

33
use (
44
.

test/e2e/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# We need to build in a Linux environment to support C libraries.
2-
FROM golang:1.23.5
2+
FROM golang:1.23
33

44
RUN apt-get -qq update -y && apt-get -qq upgrade -y >/dev/null
55

test/e2e/docker/Dockerfile.debug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# We need to build in a Linux environment to support C libraries.
2-
FROM golang:1.23.5
2+
FROM golang:1.23
33

44
RUN apt-get -qq update -y && apt-get -qq upgrade -y >/dev/null
55
RUN apt-get -qq install -y zsh vim >/dev/null

0 commit comments

Comments
 (0)