Skip to content

Commit

Permalink
Pin goimports to a version that Go v1.15 supports
Browse files Browse the repository at this point in the history
until we bump the Go version in `go.mod`.
  • Loading branch information
pierreprinetti committed May 23, 2023
1 parent 6eab72e commit 7f9da56
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ jobs:

- name: Setup environment
run: |
go get golang.org/x/tools/cmd/goimports
# Changing into a different directory to avoid polluting go.sum with "go get"
cd "$(mktemp -d)"
go mod init unit_tests
# Pin to a version that Go v1.15 supports
go get golang.org/x/tools/cmd/[email protected]
- name: Run go vet
run: |
Expand Down

0 comments on commit 7f9da56

Please sign in to comment.