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

Closed
HumanBean wants to merge 1 commit from HumanBean/Beanstalk:fix/game-cargo-windows-build into main
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 4s
CI / Workflow lint (actionlint) (pull_request) Successful in 4s
CI / Coordinator image (pull_request) Successful in 16s
CI / Coordinator tests (pull_request) Failing after 1m45s
CI / Agent build and checks (pull_request) Successful in 1m44s
b2670bc8d2
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Author
Owner

Opened by mistake with no change in it (the edit did not apply to the old checkout); redone on the merged main.

Opened by mistake with no change in it (the edit did not apply to the old checkout); redone on the merged main.
HumanBean closed this pull request 2026-11-28 05:57:07 +00:00
Some checks failed
CI / Conventional Commit title (pull_request) Successful in 4s
CI / Workflow lint (actionlint) (pull_request) Successful in 4s
CI / Coordinator image (pull_request) Successful in 16s
CI / Coordinator tests (pull_request) Failing after 1m45s
CI / Agent build and checks (pull_request) Successful in 1m44s

Pull request closed

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!157
No description provided.