Skip to content

Commit

Permalink
test: add -go flag to go tool fix
Browse files Browse the repository at this point in the history
As of 1.22.7 golang's go tool fix no longer self populates.
you can see the changes here:
golang/go@676d610#diff-a4f750f77a9e274ac048407886b3e210cdde1543878d681a6fa96b9d2ec49c23R69

fixes: #1950
  • Loading branch information
prestist committed Oct 11, 2024
1 parent 2f23c0b commit d9331fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d9331fc

Please sign in to comment.