Skip to content

Commit ab47379

Browse files
committed
build: use Go 1.21 as a minimum version
In go.mod, starting from 1.21, go version can be X.Y.Z, which is not supported by older versions. As some dependencies use this format, we have to bump the version. The alternative is to pin tools' versions to older versions instead of latest.
1 parent a6684cb commit ab47379

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
go-version:
16-
- 1.18
16+
- 1.21
1717
- oldstable
1818
- stable
1919
os:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ can checkout tag [v0.6][] if you need compatibility up to Go 1.11.
2424

2525
[v0.6]: https://github.com/vincentbernat/hellogopher/tree/v0.6
2626

27-
Some tools now require more recent versions of Go (1.18+), but it would be
27+
Some tools now require more recent versions of Go (1.21+), but it would be
2828
possible to pin them to older versions.
2929

3030
On first build, you need to run `go mod init PROJECTNAME`.

0 commit comments

Comments
 (0)