build: restore staticcheck in the gate when it supports Go 1.27.2 #741
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea#741
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.shstill 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
staticcheck ./...).scripts/setup-dev.shand.forgejo/workflows/ci.ymlto that release.