fix(agent): the game's Rust builds on Linux from the pinned Rust, offline #155

Merged
HumanBean merged 1 commit from HumanBean/Beanstalk:fix/game-rust-cargo into main 2026-11-28 05:27:03 +00:00
Owner

Linux testers' builds of main's base (and of a PR) stop with one of three errors from cargo build -p longshot-rs, all in the last day's reports:

  • The game's Rust (longshot-rs) has no prebuilt library for these sources … and nothing here to build it with (rust_missing; rp_5b99edc742580774, nightly-272)
  • error: rustup could not choose a version of cargo to run … no default is configured (rp_8530bd038d84a0ea)
  • Could not resolve host: index.crates.io (rp_1b94a9086b3ab0be)

Cause: when a tree has no prebuilt library of the game's Rust for its current sources, longshot-builder builds it with LONGSHOT_CARGO, else the PC's own cargo. The agent set neither, so the result depended on the tester's PC (no cargo, a rustup shim without a default toolchain, or a cargo that goes to crates.io from a sandbox that has no network).

Fix: every Linux sandbox build gets LONGSHOT_CARGO naming a small generated script (WorkspaceBuilder.GameCargo). It runs the tree's own scripts/longshot_builder.py game-rust (the release's way of making that library: the pinned Rust, the Cargo.lock's crates offline from the prefetched cache) and puts the library where build-compile reads it. It also gets the bundle's clang as the host linker, as the builder's own build does.

Not changed: Windows (its builds stop earlier, at the link; the probe lines from #154 are the next step there).

Not built or run here (this PC's rules): CI is the first check. One thing to watch in the first Linux reports: whether game-rust finds the pinned Rust in the read-only cache without unpacking.

🤖 Generated with Claude Code

Linux testers' builds of main's base (and of a PR) stop with one of three errors from `cargo build -p longshot-rs`, all in the last day's reports: - `The game's Rust (longshot-rs) has no prebuilt library for these sources … and nothing here to build it with` (`rust_missing`; rp_5b99edc742580774, nightly-272) - `error: rustup could not choose a version of cargo to run … no default is configured` (rp_8530bd038d84a0ea) - `Could not resolve host: index.crates.io` (rp_1b94a9086b3ab0be) Cause: when a tree has no prebuilt library of the game's Rust for its current sources, longshot-builder builds it with `LONGSHOT_CARGO`, else the PC's own `cargo`. The agent set neither, so the result depended on the tester's PC (no cargo, a rustup shim without a default toolchain, or a cargo that goes to crates.io from a sandbox that has no network). Fix: every Linux sandbox build gets `LONGSHOT_CARGO` naming a small generated script (`WorkspaceBuilder.GameCargo`). It runs the tree's own `scripts/longshot_builder.py game-rust` (the release's way of making that library: the pinned Rust, the `Cargo.lock`'s crates offline from the prefetched cache) and puts the library where build-compile reads it. It also gets the bundle's clang as the host linker, as the builder's own build does. Not changed: Windows (its builds stop earlier, at the link; the probe lines from #154 are the next step there). Not built or run here (this PC's rules): CI is the first check. One thing to watch in the first Linux reports: whether `game-rust` finds the pinned Rust in the read-only cache without unpacking. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(agent): the game's Rust builds on Linux from the pinned Rust, offline
Some checks failed
CI / Conventional Commit title (pull_request) Successful in 4s
CI / Workflow lint (actionlint) (pull_request) Successful in 5s
CI / Coordinator tests (pull_request) Failing after 1m50s
CI / Agent build and checks (pull_request) Failing after 47s
CI / Coordinator image (pull_request) Successful in 14s
5d05e996a8
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!155
No description provided.