fix(agent): the game's Rust builds on Linux from the pinned Rust, offline #155
No reviewers
Labels
No labels
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Beanstalk!155
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Beanstalk:fix/game-rust-cargo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 owncargo. 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_CARGOnaming a small generated script (WorkspaceBuilder.GameCargo). It runs the tree's ownscripts/longshot_builder.py game-rust(the release's way of making that library: the pinned Rust, theCargo.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-rustfinds the pinned Rust in the read-only cache without unpacking.🤖 Generated with Claude Code