From 48b8d7f8becf34e3e7f2a362d49d07f092b8254a Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Mon, 18 Mar 2024 10:27:04 -0400 Subject: [PATCH] Add golang 1.21 update warning This is needed on the off-chance that some tool or a human suggests updating the minimum version to 1.21 or later. Since doing so would cause Fedora and Debian to start behaving differently WRT builds. Signed-off-by: Chris Evich --- go.mod | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index a0f438a394..95cb1d5d45 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,21 @@ module github.com/containers/podman/v5 -go 1.20 +// Minimum required golang version +go 1.20 // ***** ATTENTION WARNING CAUTION DANGER ****** + +// Go versions 1.21 and later will AUTO-UPDATE based +// on currently running tools and the (new) `toolchain` +// value (when also increasing the `go` value above). +// ref: https://go.dev/doc/toolchain Because several +// different distros and distro-versions build from +// this code, golang version consistency is +// desireable. After manually updating to 1.21, a +// `toolchain` specificication should be added to pin +// the version and block auto-updates. This does not +// block any future changes to the `go` value. +// Ref: Upstream discussion: +// https://github.com/golang/go/issues/65847 +// ***** ATTENTION WARNING CAUTION DANGER ****** require ( github.com/BurntSushi/toml v1.3.2