Skip to content

build(release): drop windows from goreleaser matrix - #7

Merged
csnitker-godaddy merged 1 commit into
mainfrom
claude/drop-windows-targets
May 8, 2026
Merged

csnitker-godaddy merged 1 commit into
mainfrom
claude/drop-windows-targets

Conversation

@csnitker-godaddy

Copy link
Copy Markdown
Member

Summary

The v0.1.2 release failed at the ans-tl windows 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 (FcntlFlock for cross-process write coordination on the Merkle tree's tile files; O_DIRECTORY for safe directory ops). These constants and types live in Go's syscall_unix.go and 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:

  • A. Drop windows from ans-tl only, keep the other three. Heterogeneous archives — windows would have 3 binaries, linux/darwin would have 4. Requires re-adding allow_different_binary_count: true and lets a windows user theoretically run ans-ra against a remote linux ans-tl. Odd topology nobody's asked for.
  • B. Drop windows from both servers, keep for ans-verify + ans-dns. Same heterogeneous-archive issue, same flag, but cleaner conceptually.
  • C. Drop windows entirely (this PR). Uniform archives. Windows users who need any of the binaries can use the Dockerfile.* images under WSL2 or Docker Desktop, where the filesystem is POSIX.

C wins on simplicity. The ans-verify / ans-dns windows-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 check passes
  • Local snapshot build (goreleaser release --snapshot --clean) succeeds in 24s, produces 4 uniform archives:
    • ans_*_linux_amd64.tar.gz
    • ans_*_linux_arm64.tar.gz
    • ans_*_darwin_amd64.tar.gz
    • ans_*_darwin_arm64.tar.gz
    • Each containing ans-ra, ans-tl, ans-verify, ans-dns, LICENSE, README.md
  • Release workflow runs cleanly when this lands on main. The v0.1.2 tag already exists with no binaries; the workflow can be re-run via workflow_dispatch to 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_dispatch against the v0.1.2 tag and the binaries will be appended to the existing release.

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>
Copilot AI review requested due to automatic review settings May 8, 2026 19:21
@csnitker-godaddy
csnitker-godaddy merged commit f3d1061 into main May 8, 2026
3 checks passed
@csnitker-godaddy
csnitker-godaddy deleted the claude/drop-windows-targets branch May 8, 2026 19:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 windows from the goos matrix for all four binaries (ans-ra, ans-tl, ans-verify, ans-dns).
  • Removed the Windows-only archive format override (zip), leaving a uniform tar.gz archive format.
  • Expanded the header comment in .goreleaser.yaml to document the rationale for dropping Windows from releases.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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>
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.

2 participants