Skip to content

Commit ef4bc5c

Browse files
geroplona-agent
andcommitted
Pin golangci-lint --go=1.24 to match CI image toolchain
The CI dev-environment image bundles golangci-lint v1.64.8 built with Go 1.24, which refuses to lint code declaring "toolchain go1.25.9". Pin the lint target to 1.24 so the existing image keeps working without a rebuild. We don't use any 1.25 language features; the toolchain bump only addresses CVE-2026-27143 in the Go stdlib. Co-authored-by: Ona <no-reply@ona.com>
1 parent 2a09129 commit ef4bc5c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

WORKSPACE.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,9 @@ defaultVariant:
7171
[
7272
"sh",
7373
"-c",
74-
"golangci-lint run --disable govet,errcheck,staticcheck --allow-parallel-runners --timeout 15m",
74+
# --go=1.24 keeps lint compatible with the v1.64.x golangci-lint built into the
75+
# CI dev-environment image (which is itself built with Go 1.24). Our toolchain bump
76+
# to 1.25.9 only addresses CVE-2026-27143 in the Go stdlib; we don't use any 1.25
77+
# language features.
78+
"golangci-lint run --go=1.24 --disable govet,errcheck,staticcheck --allow-parallel-runners --timeout 15m",
7579
]

0 commit comments

Comments
 (0)