Skip to content

Commit

Permalink
build: use Go 1.21 as a minimum version
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vincentbernat committed Oct 1, 2024
1 parent a6684cb commit ab47379
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
go-version:
- 1.18
- 1.21
- oldstable
- stable
os:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ can checkout tag [v0.6][] if you need compatibility up to Go 1.11.

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

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

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

0 comments on commit ab47379

Please sign in to comment.