Skip to content

Fix Windows build with conditional Unix-specific code#11

Merged
rwdaigle merged 1 commit intomainfrom
ryan/fix-windows-build
Jan 22, 2026
Merged

Fix Windows build with conditional Unix-specific code#11
rwdaigle merged 1 commit intomainfrom
ryan/fix-windows-build

Conversation

@rwdaigle
Copy link
Contributor

Summary

Fixed Windows build failure by making Unix-specific file permissions conditional. The code was using std::os::unix::fs::PermissionsExt and set_mode() which are only available on Unix systems. These are now wrapped in #[cfg(unix)] attributes.

Changes

  • Conditional import of PermissionsExt
  • Wrapped chmod +x code in #[cfg(unix)] block so it only runs on Unix systems

Testing

All 39 tests pass. The build now succeeds on Windows while still setting executable permissions on Unix systems.

🤖 Generated with Claude Code

The code was using std::os::unix::fs::PermissionsExt and set_mode() which are only available on Unix. Wrapped these in #[cfg(unix)] attributes so the code compiles on Windows while still setting executable permissions on Unix systems.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@rwdaigle rwdaigle merged commit 42555fa into main Jan 22, 2026
3 checks passed
@rwdaigle rwdaigle deleted the ryan/fix-windows-build branch January 22, 2026 20:07
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