godoc-current.txt is GOOS-dependent (sandbox per-OS docs); cross-platform commits trip the hook #126
Labels
No labels
burndown-2026-06
sunday-sprint
coherence-core
consult
headless
interactive
P0
P1
P2
P3
P4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coilyco-flight-deck/cli-guard#126
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?
Problem
godoc-current.txtis generated byscripts/check-godoc-current.shrunninggo doc -allper package, and the output is GOOS-dependent sincecli/sandboxgrewsandbox_linux.go/sandbox_other.govariants: a snapshot generated on macOS documents the off-Linux no-ops ("RunJail is unsupported off Linux"), while a Linux regeneration documents the real impls. The committed snapshot and the hook check can only agree on one platform at a time, so every cross-platform commit trips the hook with a spurious diff.Surfaced while landing #125 on kai-server (Linux): the hook failed on sandbox docs untouched by the change. Swept the Linux regeneration into that commit to keep moving.
Fix options
GOOS=linux go docis not a thing (go doc builds for the host), but the script couldgo list-filter the per-OS files or run inside the Linux CI container only, with the hook skipping off-Linux.godoc-current_linux.txt+godoc-current_other.txt), each checked only on its platform.Related: the Actions runner servicing zero tasks (#107, #119) is why CI never caught the drift.