fix(build): use golangci-lint's supported installer and fix its version check #2579
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 389 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.357
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2579"
general
weight: 0.35
lalitadithya
Summary
Fixes #2577.
curllines ininstall-golangci-lintnow usehttps://golangci-lint.run/install.sh, the installer golangci-lint supports. Themastercopy used before is stale, and its checksum lookup also matches the release's.sbom.jsonline, so every install failed.golangci-lint version --short(prints2.15.0, available since v2.0.0) and adds thevbefore comparing it with the pin. It used to grep for avthe output never has, so it never matched and reinstalled on every run.CI is unaffected: setup-ci-env installs golangci-lint with
go install.Type of Change
Component(s) Affected
Testing
On macOS arm64:
make dev-env-setupwith golangci-lint 2.15.0 from Homebrew: the Go development tools step prints "already installed", with no download.make dev-env-setupwith no golangci-lint onPATH: the Go development tools step installs v2.15.0 into$(GOPATH)/binand passes the checksum check.make dev-env-setupagain, now with v2.15.0 in$(GOPATH)/bin: the Go development tools step prints "already installed", with no download.golangci-lintscripts that only report a version, andcurlstubbed to print its arguments instead of downloading,make install-golangci-lint:- with an older version: calls the installer with v2.15.0 and that binary's directory;
- with a v1 binary (no
--short): reads the version asunknownand calls the installer.make lint-test-allon macOS arm64 with the pinned toolchain (protoc 36.2, Python 3.13, Poetry 2.5.2) passes except for two macOS-only cases, neither related to this change:syslog-health-monitor: 4 tests read/proc/sys/kernel/random/boot_id, which macOS doesn't have.platform-connectors: a test's Unix socket path under macOS's$TMPDIRexceeds the 104-byte limit; it passes withTMPDIR=/tmp.gpu-health-monitor's DCGM tests skip themselves on macOS, as designed.
Checklist
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Chores
Updated the Go linting tool setup to use a different installer source and revised version detection. The configured tool version and installation location behavior remain unchanged. This update affects development tooling and does not introduce changes to the application’s user-facing features or behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->