Skip to content

Commit

Permalink
chore: relax go directive to permit 1.22.x (#3713)
Browse files Browse the repository at this point in the history
Setting this to 1.22.7 requires all consumers to be building with the
1.22.7 or newer release of Go 1.22 and to update their own go.mod
accordingly — this seems unnecessarily restrictive for a library module,
particularly as the code itself doesn't currently use any modern
language constructs and builds fine even with older Go versions.

Instead set the go directory to 1.22.0 and use the toolchain directive
to recommend the latest 1.22.x when building locally.

Signed-off-by: Dominic Evans <[email protected]>
  • Loading branch information
dnwe authored Jan 9, 2025
1 parent 4edc515 commit a429f08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/google/trillian

go 1.22.7
go 1.22.0

toolchain go1.22.10

require (
bitbucket.org/creachadair/shell v0.0.8
Expand Down

0 comments on commit a429f08

Please sign in to comment.