Skip to content

ci: bump golangci-lint to v2.14.0 for go1.27.2+ - #1453

Merged
mitch292 merged 1 commit into
cloudflare:masterfrom
ang-cloudflare:ang/golangci-lint-v2.14.0
Oct 22, 2026
Merged

mitch292 merged 1 commit into
cloudflare:masterfrom
ang-cloudflare:ang/golangci-lint-v2.14.0

Conversation

@ang-cloudflare

@ang-cloudflare ang-cloudflare commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

The lint job now fails on every PR, including ones whose changes are unrelated to the failing packages (example run):

scan/crypto/crypto.go:10:2: could not import io (... could not load export data: internal error in importing "internal/goarch" (cannot decode "internal/goarch", export data version 5 is greater than maximum supported version 4) ...) (typecheck)

setup-go with go-version: "1.27" resolves to the latest patch release. That was go1.27.1 for master's last green run on Oct 6. It became go1.27.2 on Oct 8 and is now go1.27.3. golangci-lint v2.13.2 can't read the export data from go1.27.2 or later, even when built from source with that toolchain. v2.14.0 can.

I reproduced it locally on unmodified master (GOOS=linux):

go1.27.1 go1.27.2 go1.27.3
golangci-lint v2.13.2 0 issues 3 typecheck errors 3 typecheck errors
golangci-lint v2.14.0 0 issues 0 issues 0 issues

golangci-lint config verify passes on v2.14.0 with the existing .golangci.yml.

This keeps go-version: "1.27" floating rather than pinning a patch release, so CI keeps picking up Go security fixes (go1.27.2: crypto/tls, net/http; go1.27.3: crypto/x509).

setup-go resolves go-version "1.27" to the latest patch, now go1.27.2.
golangci-lint v2.13.2 can't read go1.27.2 export data ("export data
version 5 is greater than maximum supported version 4"), so lint fails
with typecheck errors on any change. v2.14.0 lints cleanly on both
go1.27.1 and go1.27.2.

Signed-off-by: Alex Ng <ang@cloudflare.com>
@ang-cloudflare ang-cloudflare changed the title ci: bump golangci-lint to v2.14.0 for go1.27.2 ci: bump golangci-lint to v2.14.0 for go1.27.2+ Oct 22, 2026
@mitch292
mitch292 merged commit 5b971ff into cloudflare:master Oct 22, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants