Repository navigation
build(release): drop windows from goreleaser matrix - #7
Merged
Merged
Conversation
The v0.1.2 release failed because ans-tl can't compile for windows: github.com/transparency-dev/tessera/storage/posix uses POSIX file locking primitives (FcntlFlock, F_WRLCK, F_SETLKW, Flock_t) and O_DIRECTORY, none of which exist in Go's syscall_windows.go. macOS builds fine because it's POSIX-compliant; windows is not. Rather than ship a heterogeneous archive set (windows would have 3 of 4 binaries, requiring allow_different_binary_count and a confusing asymmetry), drop windows entirely. Windows users who need to run any of the binaries can do so via the Dockerfile.* images under WSL2 or Docker Desktop, where the underlying filesystem is POSIX. Verified: goreleaser check passes, and a local snapshot build produces four uniform archives (linux/darwin x amd64/arm64), each containing all four binaries + LICENSE + README. Signed-off-by: Connor Snitker <csnitker@godaddy.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the GoReleaser configuration to stop producing Windows artifacts, aligning the release matrix with the actual platform support constraints (the ans-tl dependency on Tessera’s POSIX storage backend prevents Windows builds).
Changes:
- Removed
windowsfrom thegoosmatrix for all four binaries (ans-ra,ans-tl,ans-verify,ans-dns). - Removed the Windows-only archive format override (zip), leaving a uniform
tar.gzarchive format. - Expanded the header comment in
.goreleaser.yamlto document the rationale for dropping Windows from releases.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
3 tasks
csnitker-godaddy
added a commit
that referenced
this pull request
May 8, 2026
PR #7 (build(release): drop windows from goreleaser matrix) used the `build:` conventional-commit type, which release-please ignores (along with chore/ci/docs/style/test/refactor — only feat/fix/perf and breaking changes trigger version bumps). As a result no v0.1.3 release PR was opened after that merge, so the windows-drop fix is on main but isn't tagged or published. This empty commit, with the correct `fix:` prefix, gives release-please a user-facing commit to bump on. When the resulting release PR merges, goreleaser will run against the v0.1.3 tag (which includes the windows-drop fix) and attach binaries to the release. Signed-off-by: Connor Snitker <csnitker@godaddy.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The v0.1.2 release failed at the
ans-tlwindows build with:```
github.com/transparency-dev/tessera/storage/posix
undefined: syscall.O_DIRECTORY
undefined: syscall.Flock_t
undefined: syscall.F_WRLCK
undefined: syscall.FcntlFlock
undefined: syscall.F_SETLKW
```
Tessera's POSIX storage backend uses Unix file-locking primitives (
FcntlFlockfor cross-process write coordination on the Merkle tree's tile files;O_DIRECTORYfor safe directory ops). These constants and types live in Go'ssyscall_unix.goand aren't defined for Windows — Windows uses different primitives (LockFileEx) with different semantics. macOS builds fine because it's POSIX-compliant.Why drop windows entirely (not just from
ans-tl)Three options were on the table:
ans-tlonly, keep the other three. Heterogeneous archives — windows would have 3 binaries, linux/darwin would have 4. Requires re-addingallow_different_binary_count: trueand lets a windows user theoretically runans-raagainst a remote linuxans-tl. Odd topology nobody's asked for.ans-verify+ans-dns. Same heterogeneous-archive issue, same flag, but cleaner conceptually.Dockerfile.*images under WSL2 or Docker Desktop, where the filesystem is POSIX.C wins on simplicity. The
ans-verify/ans-dnswindows-native use case is small enough that "run it via Docker" is fine, and we avoid permanent asymmetry in the artifact matrix.Test plan
goreleaser checkpassesgoreleaser release --snapshot --clean) succeeds in 24s, produces 4 uniform archives:ans_*_linux_amd64.tar.gzans_*_linux_arm64.tar.gzans_*_darwin_amd64.tar.gzans_*_darwin_arm64.tar.gzans-ra,ans-tl,ans-verify,ans-dns,LICENSE,README.mdmain. The v0.1.2 tag already exists with no binaries; the workflow can be re-run viaworkflow_dispatchto upload to it (release.mode: append).Recovering v0.1.2
Same recovery path as v0.1.1: once this merges, trigger the Release workflow via
workflow_dispatchagainst the v0.1.2 tag and the binaries will be appended to the existing release.