Skip to content

Commit 2817957

Browse files
authored
fix: Use auto toolchain for go tools (#27)
Use `auto` toolchain for go tools to prevent errors like ``` Run go install honnef.co/go/tools/cmd/staticcheck@latest go: downloading honnef.co/go/tools v0.7.0 go: honnef.co/go/tools/cmd/staticcheck@latest: honnef.co/go/tools@v0.7.0 requires go >= 1.25.0 (running go 1.24.0; GOTOOLCHAIN=local) ```
1 parent 290ab97 commit 2817957

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/reusable_go_checks.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ jobs:
101101
with:
102102
go-version-file: ${{ inputs.go_version_file }}
103103
- name: Run goimports
104+
env:
105+
GOTOOLCHAIN: auto
104106
run: |
105107
go install golang.org/x/tools/cmd/goimports@latest
106108
goimports -l -w ./
@@ -117,6 +119,8 @@ jobs:
117119
with:
118120
go-version-file: ${{ inputs.go_version_file }}
119121
- name: Run Staticcheck
122+
env:
123+
GOTOOLCHAIN: auto
120124
run: |
121125
go install honnef.co/go/tools/cmd/staticcheck@latest
122126
find . -type f -name 'go.mod' | while read -r svc; do

0 commit comments

Comments
 (0)