From a429f08265fba447990bfc98121bd612db3ee645 Mon Sep 17 00:00:00 2001 From: Dominic Evans <8060970+dnwe@users.noreply.github.com> Date: Thu, 9 Jan 2025 15:34:49 +0000 Subject: [PATCH] chore: relax go directive to permit 1.22.x (#3713) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- go.mod | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 3fb9900531..d13be6c726 100644 --- a/go.mod +++ b/go.mod @@ -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