ci: use supported golangci-lint installer#629
Conversation
Greptile SummaryThis PR pins
Confidence Score: 5/5Safe to merge — the change is limited to the lint toolchain setup and does not touch any Go source, generated files, or test behaviour. The only modified file is the Makefile, and both changes (pinning the version and correcting the -- separator) are straightforward improvements. No application logic, generated spec-test output, or CI workflow files are affected. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[make lint-prepare] --> B["curl golangci-lint install.sh"]
B --> C{"GOLANGCI_LINT_VERSION set?"}
C -- "Yes (env override)" --> D["Install specified version"]
C -- "No (default)" --> E["Install v2.11.4"]
D --> F["./bin/golangci-lint"]
E --> F
F --> G[make lint]
G --> H["./bin/golangci-lint run -v ./..."]
Reviews (1): Last reviewed commit: "ci: pin golangci-lint version" | Re-trigger Greptile |
| .PHONY: lint-prepare | ||
| lint-prepare: | ||
| curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s latest | ||
| curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- $(GOLANGCI_LINT_VERSION) |
There was a problem hiding this comment.
| curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- $(GOLANGCI_LINT_VERSION) | |
| curl -sfL https://golangci-lint.run/install.sh | sh -s latest |
| @@ -1,9 +1,10 @@ | |||
| GOPATH?=$(shell go env GOPATH) | |||
| TEST_PKG?=./... | |||
| GOLANGCI_LINT_VERSION?=v2.11.4 | |||
There was a problem hiding this comment.
| GOLANGCI_LINT_VERSION?=v2.11.4 |
Updates the golangci-lint installer URL from the retired
masterbranch script to the supported installer URL recommended by upstream. This keeps the existinglatestbehavior while avoiding the checksum matching issue triggered by newer release assets.The v2.12.2 tarball checksum itself appears valid; the failure is in the old installer path used by this repo. Upstream closed the issue as a duplicate and recommended this installer URL here: golangci/golangci-lint#6572 (comment)
No sync workflow behavior or generated spec-test behavior is changed.
Verification: installed the current latest linter locally through the supported installer URL and ran the lint target successfully.