Skip to content

Commit 0853da9

Browse files
authored
fix(task): rebuild golangci-lint when Go toolchain changes (#148)
Signed-off-by: I747817 <jakob.vetter@sap.com>
1 parent f72e86a commit 0853da9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tasks_tools.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ tasks:
7979
status:
8080
- test -x {{.LINTER}}
8181
- '{{.LINTER}} --version | grep -q {{.LINTER_VERSION | trimPrefix "v"}}'
82+
- '{{.LINTER}} --version | grep -q "$(go env GOVERSION)"'
8283
cmds:
83-
- 'curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b {{.LOCALBIN}} {{.LINTER_VERSION}}'
84+
- 'GOBIN="{{.LOCALBIN}}" go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@{{.LINTER_VERSION}}'
8485
internal: true
8586

8687
jq:

0 commit comments

Comments
 (0)