Skip to content

Commit

Permalink
Use pinned version of tools in Makefile and ci.yml (beta) (#1915)
Browse files Browse the repository at this point in the history
* pinned the tools version in Makefile for codegen-format step

* changed tools version to v0.24.0 in ci yml file
  • Loading branch information
jar-stripe authored Sep 9, 2024
1 parent 9871e80 commit 016e9b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: lint
run: |
go install honnef.co/go/tools/cmd/[email protected] &&
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
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 016e9b1

Please sign in to comment.