Repository navigation
build: remove Windows support (unsupported platform) - #1363
Conversation
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]>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
✅ Review complete (commit 48d3d68) |
There was a problem hiding this comment.
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 unixand 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. |
thepastaclaw
left a comment
There was a problem hiding this comment.
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]>
|
@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
left a comment
There was a problem hiding this comment.
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.
Summary
Aggressively removes Windows as a supported platform across build scripts, configs, and docs:
.goreleaser.ymlgoosMakefileTARGET_PLATFORMS+Windows_NTbranchscripts/dist.sh,scripts/build.sh//go:build unixonlibs/os/perms.goRationale
Windows was never tested or supported, and the residual scaffolding implied a guarantee that did not exist.
🤖 Generated with Claude Code