diff --git a/make/go/dep_govulncheck.mk b/make/go/dep_govulncheck.mk index ad11e44..4598f12 100644 --- a/make/go/dep_govulncheck.mk +++ b/make/go/dep_govulncheck.mk @@ -8,7 +8,9 @@ $(call _assert_var,CACHE_BIN) # We want to ensure we rebuild govulncheck every time we require a new Go minor version. # Otherwise, the cached version may not support the latest language features. -GOVULNCHECK_GO_VERSION := $(shell go list -m -f '{{.GoVersion}}' | cut -d'.' -f1-2) +# This version is the go toolchain version not the module version to ensure +# the build handles specific language features in newer toolchains. +GOVULNCHECK_GO_VERSION := $(shell go env GOVERSION | sed 's/^go//' | cut -d'.' -f1-2) # Settable # https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck 20250106 checked 20250212