fix(agent): the Windows build compiles again: the game cargo script is Linux's alone #158

Merged
HumanBean merged 1 commit from HumanBean/Beanstalk:fix/game-cargo-windows-build into main 2026-11-28 05:57:53 +00:00
Owner

The release build of the agent for Windows (MagicBeanAdmin/Release, run 60190, "The agent, both systems") fails since #155:

agent/Core/WorkspaceBuilder.cs: error CA1416: This call site is reachable on all platforms. 'File.SetUnixFileMode(string, UnixFileMode)' is unsupported on: 'windows'

So the nightly with #155 and #156 was never published (the unattended trigger does not try a failed release again). CI here builds for Linux only, which is why it passed.

Fix: GameCargo returns null first thing on Windows (OperatingSystem.IsWindows()), which the analyzer follows. No change for Linux.

Not built or run here (this PC's rules); the release build is the check: it needs a run by hand after this merges (publish on).

🤖 Generated with Claude Code

The release build of the agent for Windows (MagicBeanAdmin/Release, run 60190, "The agent, both systems") fails since #155: `agent/Core/WorkspaceBuilder.cs: error CA1416: This call site is reachable on all platforms. 'File.SetUnixFileMode(string, UnixFileMode)' is unsupported on: 'windows'` So the nightly with #155 and #156 was never published (the unattended trigger does not try a failed release again). CI here builds for Linux only, which is why it passed. Fix: `GameCargo` returns null first thing on Windows (`OperatingSystem.IsWindows()`), which the analyzer follows. No change for Linux. Not built or run here (this PC's rules); the release build is the check: it needs a run by hand after this merges (publish on). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(agent): the Windows build compiles again: the game cargo script is Linux's alone
Some checks failed
CI / Conventional Commit title (pull_request) Successful in 5s
CI / Workflow lint (actionlint) (pull_request) Successful in 5s
CI / Coordinator image (pull_request) Successful in 17s
CI / Coordinator tests (pull_request) Failing after 1m26s
CI / Agent build and checks (pull_request) Successful in 1m48s
49fcd99cfc
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Beanstalk!158
No description provided.