build: restore staticcheck in the gate when it supports Go 1.27.2 #741

Open
opened 2026-10-09 16:52:45 +00:00 by hexajon · 0 comments
Owner

Context

I bumped the gate to Go 1.27.2. It is a security patch: govulncheck flagged 9 standard-library CVEs, fixed only in 1.27.2.

Go 1.27.2 broke staticcheck. The current release (v0.8.1) and the master build both fail to decode 1.27.2 export data. Every run reports "export data version 5 is greater than maximum supported version 4". No staticcheck release supports 1.27.2 yet.

What the gate does now

scripts/gate.sh still runs staticcheck. When staticcheck fails ONLY with that export-data error, the gate prints a skip line and does not fail. Any real staticcheck finding still fails the gate. This is a loud, tracked skip, not a silent pass.

The skip is self-clearing. When a staticcheck release decodes 1.27.2, the error stops, and staticcheck runs as a normal gate step again, with no change to gate.sh.

What to do to close this

  1. Confirm a staticcheck release decodes Go 1.27.2 (no export-data error on staticcheck ./...).
  2. Bump the staticcheck pin in scripts/setup-dev.sh and .forgejo/workflows/ci.yml to that release.
  3. Confirm the gate shows staticcheck as a normal pass, not a skip.
## Context I bumped the gate to Go 1.27.2. It is a security patch: govulncheck flagged 9 standard-library CVEs, fixed only in 1.27.2. Go 1.27.2 broke staticcheck. The current release (v0.8.1) and the master build both fail to decode 1.27.2 export data. Every run reports "export data version 5 is greater than maximum supported version 4". No staticcheck release supports 1.27.2 yet. ## What the gate does now `scripts/gate.sh` still runs staticcheck. When staticcheck fails ONLY with that export-data error, the gate prints a skip line and does not fail. Any real staticcheck finding still fails the gate. This is a loud, tracked skip, not a silent pass. The skip is self-clearing. When a staticcheck release decodes 1.27.2, the error stops, and staticcheck runs as a normal gate step again, with no change to `gate.sh`. ## What to do to close this 1. Confirm a staticcheck release decodes Go 1.27.2 (no export-data error on `staticcheck ./...`). 2. Bump the staticcheck pin in `scripts/setup-dev.sh` and `.forgejo/workflows/ci.yml` to that release. 3. Confirm the gate shows staticcheck as a normal pass, not a skip.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sixfold-space/madtea#741
No description provided.