Skip to content

fix(tui): move Sigwinch behind unix build constraints — unbreaks windows CI (release gate) - #269

Merged
linhdmn merged 1 commit into
mainfrom
fix/windows-sigwinch
Sep 9, 2026
Merged

fix(tui): move Sigwinch behind unix build constraints — unbreaks windows CI (release gate)#269
linhdmn merged 1 commit into
mainfrom
fix/windows-sigwinch

Conversation

@linhdmn

@linhdmn linhdmn commented Sep 9, 2026

Copy link
Copy Markdown
Member

What

Evidence

  • GOOS=windows go build ./... → rc=0 (was: undefined: syscall.SIGWINCH at loopimpl.go:1092)
  • go build ./... + go vet + go test ./internal/tui/ -count=1 green on darwin
  • gofmt clean

Closes the windows leg of FR-GO-14's cross-compile gate (same failure class as the 5d79ab0 release-gate fix: cross-OS files always need constraints).

PR #268 shipped TermEnv.Sigwinch using syscall.SIGWINCH with no build
tag, which does not exist on windows: CI-Go windows-build/windows-cross
and Release have been red since 74b3203 (same class as the 5d79ab0
release-gate lesson; #268 merged before its windows CI completed).

Move the implementation into rawterm_unix.go (darwin||linux, already the
termios home) and add a nil-channel stub in rawterm_other.go — the
TermEnv contract (loop.go:111-114 'may be nil') already covers it:
Run's resize select never fires and the poll path repaints.

Verified: GOOS=windows go build ./... rc=0, go build rc=0, go vet clean,
internal/tui suite green on darwin.
@linhdmn
linhdmn merged commit e510828 into main Sep 9, 2026
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant