You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fleet-command runner surface: no cargo toolchain, and nix cannot build (nixbld group missing; /homeless-shelter purity error) #13331
Found 2026-11-23 while dispatching a Rust test run for #5756 (PR #13330) through the documented fallback (gh workflow run fleet-command.yml --repo developing-today/fleet).
The standard Fleet build container (ghcr.io/dezren39/fleet-build-full) cannot run a Rust build/test command today:
No Rust toolchain on the surface.which cargo rustc rustup finds nothing; PATH is /home/vscode/.nix-profile/bin:/usr/local/go/bin:... (nix, go, python3 only). The workflow's CARGO_HOME/RUSTUP_HOME caches (.fleet/cache/{cargo,rustup}) restore empty on a cold key, and nothing installs a toolchain into them. The runbook's example command (cargo test --workspace, pkgs/fleet/doc/agents/remote-build-and-test.md) fails with cargo: command not found (run 45177566734).
The nix route is broken in the container.nix develop against the code repo's root flake first needs --extra-experimental-features 'nix-command flakes' (acceptable), then fails: error: the group 'nixbld' specified in 'build-users-group' does not exist (run 45179906596). With --option build-users-group '' it fetches substitutes fine but fails at build time: error: home directory '/homeless-shelter' exists; please remove it to assure purity of builds without sandboxing (run 45183462671).
Workaround used for PR #13330 (works, and warms the caches): the dispatched command bootstraps the pinned toolchain via rustup into the run's CARGO_HOME/RUSTUP_HOME: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.99.1 --profile minimal, then export PATH="/bin:/opt/hatch/bin:/opt/hatch-image/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/hatch/workspace/custom-skills/in-flight-reasoning-log/scripts:/opt/muse/skills/documents/scripts:/opt/muse/skills/generate_podcast/scripts:/opt/muse/skills/style-tryon/scripts". Run 45185203954 passed end to end with it.
Ask: make the standard surface run the runbook's plain cargo commands — either pre-install a rustup-managed toolchain in the build image (or restore one into the fleet-deps cache under the toolchain-file key), or fix the container's nix configuration (create the nixbld group / set build-users-group empty + sandbox off coherently) so nix develop works. Until then every Rust dispatch rediscovers this.
Refs: #5756, PR #13330. Runs: 45177566734 (cargo missing), 45179906596 (nixbld), 45183462671 (homeless-shelter), 45184417123 + 45185203954 (rustup bootstrap; the second is the passing one).
Fix record (lane felix, 2026-11-23) — fixed in dezren39/fleet PR #105 (dezren39/fleet#105), jointly with #13159, awaiting Felix's review/merge.
Both halves of the ask are addressed:
Rust toolchain: the build image now bakes a rustup-managed toolchain (default 1.99.1, the fleet-wide rust-toolchain.toml pin) — and, for images already published, the new .github/scripts/fleet-executor-prep.sh runs inside fleet-command / fleet-run / fleet-dispatch-test before the dispatched command and installs the toolchain into the fleet-command cache dirs (CARGO_HOME/RUSTUP_HOME under .fleet/cache, so it persists across runs under the existing cache key, which already hashes rust-toolchain files). Per-repo rust-toolchain.toml pins are honoured by the rustup shims. Bun (1.4.5) is supplied the same two ways.
Nix route: the container's nix configuration is fixed coherently — a real nixbld group with a populated member list plus a system /etc/nix/nix.conf with build-users-group = nixbld (baked; the prep creates both at runtime on older images). This replaces the broken build-users-group='' workaround that ran builds as root into the /homeless-shelter purity error: builds now run as the nixbld users.
Proof (developing-today/code @ 9776461): before — run 45186834536 cargo: command not found, run 45186842535 experimental Nix feature 'nix-command' is disabled. After (from the PR branch) — fleet-command run 45188409927: prep installed rustup + 1.99.1 + bun 1.4.5 into the cache dirs and cargo test -p fleet-proxy-proto passed (20 tests); fleet-command run 45188416486: the plain cd pkgs/id && nix develop --command cargo test -p id --lib hosted_export succeeded with no flags and no bootstrap in the command; fleet-run run 45187632834 likewise green. The runbook's plain cargo commands now run as written.
Venue note: the change lands in dezren39/fleet because the org fleet repos are actions-only mirrors of it (sync-upstream.yml) and its Containerfile is the single source for both image namespaces. This issue can close once PR #105 merges and the mirrors converge.
Activity
developing-today commentedon Nov 23, 2026
CODE-4861
dezren39 commentedon Nov 23, 2026
Fix record (lane felix, 2026-11-23) — fixed in dezren39/fleet PR #105 (dezren39/fleet#105), jointly with #13159, awaiting Felix's review/merge.
Both halves of the ask are addressed:
.github/scripts/fleet-executor-prep.shruns inside fleet-command / fleet-run / fleet-dispatch-test before the dispatched command and installs the toolchain into the fleet-command cache dirs (CARGO_HOME/RUSTUP_HOME under .fleet/cache, so it persists across runs under the existing cache key, which already hashes rust-toolchain files). Per-repo rust-toolchain.toml pins are honoured by the rustup shims. Bun (1.4.5) is supplied the same two ways.Proof (developing-today/code @ 9776461): before — run 45186834536
cargo: command not found, run 45186842535experimental Nix feature 'nix-command' is disabled. After (from the PR branch) — fleet-command run 45188409927: prep installed rustup + 1.99.1 + bun 1.4.5 into the cache dirs andcargo test -p fleet-proxy-protopassed (20 tests); fleet-command run 45188416486: the plaincd pkgs/id && nix develop --command cargo test -p id --lib hosted_exportsucceeded with no flags and no bootstrap in the command; fleet-run run 45187632834 likewise green. The runbook's plain cargo commands now run as written.Venue note: the change lands in dezren39/fleet because the org fleet repos are actions-only mirrors of it (sync-upstream.yml) and its Containerfile is the single source for both image namespaces. This issue can close once PR #105 merges and the mirrors converge.