You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
make check fails on macOS: staticcheck SA4023 in pkg/agent/fsx_mount.go (darwin stub only) #1060
make check stops at staticcheck on a macOS workstation, on clean main (a07643a+):
$ GOTOOLCHAIN=go1.26.9 staticcheck ./...
pkg/agent/fsx_mount.go:109:65: this comparison is always true (SA4023)
pkg/agent/fsx_mount.go:109:12: the lhs of the comparison is the 1st return value of this function call
pkg/agent/sys_other.go:40:6: github.com/spore-host/spawn/pkg/agent.sysMountLustre never returns a nil interface value
$ GOTOOLCHAIN=go1.26.9 GOOS=linux staticcheck ./... # exit 0
The non-Linux stub sysMountLustre (sys_other.go:40) always returns a non-nil error, so on darwin the err != nil at fsx_mount.go:109 is constant. CI lints only on linux, so it stays green. Locally, make check can't pass on a Mac, which the README presents as the pre-commit step. Both files changed on 2026-10-15 (#916, #1003).
A second local-only trap in the same step: with Go 1.27.2 installed, staticcheck 2026.2.x dies on export data version 5 is greater than maximum supported version 4 for every package. CI pins Go 1.26.9; GOTOOLCHAIN=go1.26.9 works around it.
Suggested fix: run staticcheck with GOOS=linux in check-staticcheck (matching CI's target), or restructure the stub so the comparison isn't constant. Either way, keep it a hard failure (#923).
Activity
fix: Windows spored monitor stops promptly on cancel; make check pass…