From 9679f607a16d74a6bf96c75d829a65679fbcf1cc Mon Sep 17 00:00:00 2001 From: Tiger Kaovilai Date: Tue, 12 Nov 2024 16:00:13 -0500 Subject: [PATCH] Reduces go.mod minimum go to patch 1.22.0 Signed-off-by: Tiger Kaovilai --- changelogs/unreleased/8399-kaovilai | 1 + go.mod | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 changelogs/unreleased/8399-kaovilai diff --git a/changelogs/unreleased/8399-kaovilai b/changelogs/unreleased/8399-kaovilai new file mode 100644 index 00000000000..e44c039c940 --- /dev/null +++ b/changelogs/unreleased/8399-kaovilai @@ -0,0 +1 @@ +Add golang buildinfo to velero to check toolchain used. Reduce minimum go toolchain in go.mod diff --git a/go.mod b/go.mod index 330ece7e5cb..7ee3fb2050d 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,12 @@ module github.com/vmware-tanzu/velero -go 1.22.8 +// Do not pin patch version here. Leave patch at X.Y.0 +// Unset GOTOOLCHAIN to assume GOTOOLCHAIN=local where go cli version in path is used. +// Use env GOTOOLCHAIN=auto to allow go to decide whichever is newer from go.mod or cli in path. +// or GOTOOLCHAIN=goX.Y.Z to use a specific toolchain version +// See: https://go.dev/doc/toolchain#select and https://github.com/vmware-tanzu/velero/issues/8397 +// To bump minor version, run `go get go@X.Y.0 toolchain@none` (ie. `go get go@1.23.0 toolchain@none`) +go 1.22.0 require ( cloud.google.com/go/storage v1.40.0