From d9331fc641539aab4290f40e174c41b15bdf71bb Mon Sep 17 00:00:00 2001 From: Steven Presti Date: Fri, 11 Oct 2024 11:16:11 -0400 Subject: [PATCH] test: add -go flag to go tool fix As of 1.22.7 golang's go tool fix no longer self populates. you can see the changes here: https://github.com/golang/go/commit/676d6100d89fb8527c42f072bc7b7a9b98700f84#diff-a4f750f77a9e274ac048407886b3e210cdde1543878d681a6fa96b9d2ec49c23R69 fixes: #1950 --- test | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test b/test index d0be5e62f..14e9a2aff 100755 --- a/test +++ b/test @@ -44,7 +44,8 @@ PKG_VET=$(go list ./... | \ grep --invert-match internal/log) echo "Checking gofix..." -go tool fix -diff $SRC +go_version=$(go version | awk '{print $3}') +go tool fix -go="$go_version" -diff $SRC echo "Checking gofmt..." res=$(gofmt -d -e -s $SRC)