Skip to content

build: remove Windows support (unsupported platform) - #1363

Merged
lklimek merged 2 commits into
v1.6-devfrom
fix/windows-purge
Jun 22, 2026
Merged

lklimek merged 2 commits into
v1.6-devfrom
fix/windows-purge

Conversation

@lklimek

@lklimek lklimek commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

Aggressively removes Windows as a supported platform across build scripts, configs, and docs:

  • .goreleaser.yml goos
  • Makefile TARGET_PLATFORMS + Windows_NT branch
  • scripts/dist.sh, scripts/build.sh
  • //go:build unix on libs/os/perms.go
  • neutralized tempfile comment
  • docs updates

Rationale

Windows was never tested or supported, and the residual scaffolding implied a guarantee that did not exist.

🤖 Generated with Claude Code

Windows is not a supported platform for Tenderdash. Only Linux and macOS
are supported. This commit removes all Windows build targets and stray
references so there is zero Windows footprint.

Changes:
- .goreleaser.yml: remove 'windows' from goos list
- Makefile: remove ifeq(OS,Windows_NT)/.exe branch from
  build-contract-tests-hooks; remove windows/amd64 from TARGET_PLATFORMS
  in build-reproducible
- scripts/dist.sh: remove 'windows' from XC_OS; remove windows/arm and
  windows/arm64 from XC_EXCLUDE
- scripts/build.sh: remove Windows-specific OS_FILE_EXT comment and
  variable references
- libs/os/perms.go: add //go:build unix constraint (file uses
  golang.org/x/sys/unix and syscall.Stat_t)
- internal/libs/tempfile/tempfile.go: remove Windows-specific comment
- docs/nodes/running-in-production.md: replace vague cross-platform copy
  with an explicit "Linux and macOS only, Windows not supported" statement
- docs/tutorials/go.md: remove Windows-specific badger workaround section

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@lklimek
lklimek requested a review from QuantumExplorer as a code owner June 22, 2026 08:09
@coderabbitai

coderabbitai Bot commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a7d5ce32-e8be-42c6-9622-8c4ed69a6a4e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/windows-purge

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@thepastaclaw

thepastaclaw commented Jun 22, 2026 •

Copy link
Copy Markdown

✅ Review complete (commit 48d3d68)

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 removes Windows as a supported platform across the release/build pipeline and documentation, aligning build artifacts and platform-specific code with the project’s supported environments.

Changes:

  • Removed Windows from GoReleaser and reproducible build target lists.
  • Updated build/distribution scripts and Makefile targets to drop Windows-specific handling.
  • Restricted Unix-only permissions diagnostics code to //go:build unix and removed Windows references from docs/comments.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
scripts/dist.sh Removes Windows from cross-compile OS matrix and exclusion list.
scripts/build.sh Removes .exe-suffix handling in artifact move step.
Makefile Drops Windows-specific contract test build branch and removes Windows from reproducible build platforms.
libs/os/perms.go Marks permission diagnostics implementation as Unix-only via build tag.
internal/libs/tempfile/tempfile.go Updates comment around explicit close-before-rename in atomic writes.
docs/tutorials/go.md Removes Windows-specific Badger workaround note.
docs/nodes/running-in-production.md Updates OS support text to exclude Windows.
.goreleaser.yml Removes Windows from release build targets.

Comment thread internal/libs/tempfile/tempfile.go Resolved
Comment thread scripts/build.sh Resolved

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

PR cleanly removes residual Windows scaffolding from build configs, Go source, and docs. Both agent findings are either pre-existing scope (solaris/freebsd in scripts/dist.sh were not touched by this PR) or trivial comment nits that don't warrant review feedback.

A silent close failure (e.g. disk-full flush error) would previously
cause WriteFileAtomic to proceed with os.Rename and report success while
the destination file may be truncated or corrupt.  Now the error is
propagated so callers can handle it correctly.

Reported by copilot on PR #1363.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@lklimek
lklimek requested a review from thepastaclaw June 22, 2026 10:09
@lklimek

lklimek commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator Author

@thepastaclaw please take another look — a follow-up fix (48d3d68: handle f.Close() error in WriteFileAtomic) landed after your approval. CI is green (20/20).

🤖 Co-authored by Claudius the Magnificent AI Agent

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

PR #1363 removes Windows from build/release/docs scaffolding and adds a //go:build unix tag to libs/os/perms.go to match its unix-only dependencies. The follow-up commit 48d3d68 correctly checks the explicit f.Close() error before os.Rename in WriteFileAtomic, preventing silently truncated outputs on flush failures. Both reviewing agents independently reported no in-scope defects and verification against the source confirms this.

@lklimek
lklimek merged commit 10804e6 into v1.6-dev Jun 22, 2026
17 checks passed
@lklimek
lklimek deleted the fix/windows-purge branch June 22, 2026 13:40
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.

3 participants