diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f0258e959..671f3aaa46 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: - name: lint run: | go install honnef.co/go/tools/cmd/staticcheck@v0.4.7 && - go install golang.org/x/tools/cmd/goimports@latest && + go install golang.org/x/tools/cmd/goimports@v0.24.0 && $HOME/go/bin/staticcheck && make vet && make check-gofmt diff --git a/Makefile b/Makefile index f5628f4487..f99cf995fd 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ update-version: codegen-format: normalize-imports scripts/gofmt.sh - go install golang.org/x/tools/cmd/goimports@latest && goimports -w example/generated_examples_test.go + go install golang.org/x/tools/cmd/goimports@v0.24.0 && goimports -w example/generated_examples_test.go CURRENT_MAJOR_VERSION := $(shell cat VERSION | sed 's/\..*//') normalize-imports: