golangci-lint cannot read the go 1.27.2 export data, so task lint fails on arbitrary packages #1549

Closed
opened 2026-10-27 13:40:50 +00:00 by sam · 0 comments
Owner

task check's lint step fails with typecheck errors that have nothing to do with the code under review:

could not import sync/atomic ... cannot load export data: internal error in importing "sync/atomic" (cannot decode "sync/atomic", export data version 5 is greater than maximum supported version 4)

The installed golangci-lint 2.13.2 was built with go1.27.0-X:simd; its importer supports export data version 4. The toolchain now compiles std and the module to version 5. The failing package varies between runs (relay, then internal/channels/status), so lint is nondeterministic and the gate cannot complete.

Rebuilding golangci-lint with the local go1.27.2 toolchain does not fix it: golangci-lint 2.13.2's x/tools gcimporter is still capped at version 4.

Fix options: upgrade golangci-lint to a release whose x/tools reads export data version 5, or run lint with a go1.27.0 toolchain (GOTOOLCHAIN=go1.27.0).

Done when: task check's lint step passes on a clean tree.

Acceptance criteria

The task check lint step passes on a clean tree with a Go-compatible golangci-lint configuration.

Close reason

golangci-lint 2.14.0 reads go1.27.2 export data; task lint passes on a clean tree (0 issues, both modules).


Imported from beads archie-core-rhne · GitHub #1544 · type bug · priority P2 · created 2026-10-09 · closed 2026-10-24

task check's lint step fails with typecheck errors that have nothing to do with the code under review: could not import sync/atomic ... cannot load export data: internal error in importing "sync/atomic" (cannot decode "sync/atomic", export data version 5 is greater than maximum supported version 4) The installed golangci-lint 2.13.2 was built with go1.27.0-X:simd; its importer supports export data version 4. The toolchain now compiles std and the module to version 5. The failing package varies between runs (relay, then internal/channels/status), so lint is nondeterministic and the gate cannot complete. Rebuilding golangci-lint with the local go1.27.2 toolchain does not fix it: golangci-lint 2.13.2's x/tools gcimporter is still capped at version 4. Fix options: upgrade golangci-lint to a release whose x/tools reads export data version 5, or run lint with a go1.27.0 toolchain (GOTOOLCHAIN=go1.27.0). Done when: task check's lint step passes on a clean tree. ### Acceptance criteria The task check lint step passes on a clean tree with a Go-compatible golangci-lint configuration. ### Close reason golangci-lint 2.14.0 reads go1.27.2 export data; task lint passes on a clean tree (0 issues, both modules). --- _Imported from beads `archie-core-rhne` · GitHub #1544 · type bug · priority P2 · created 2026-10-09 · closed 2026-10-24_
sam added the mediumbug labels 2026-10-27 13:40:50 +00:00
sam self-assigned this 2026-10-27 13:40:50 +00:00
sam closed this issue 2026-10-27 13:40:50 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1549