build: cross-platform 'just use-local' via rust-script installer#580
Merged
Conversation
The two intermediate messages of the read fallback cascade ('IOCP
inline read failed — trying fallback strategies' and 'Fallback 1
($MFT file) failed — trying unbuffered volume I/O') fired at WARN,
piercing quiet (WARN-default) subscribers on every run that walked the
chain — flagged by the content-service team as upstream mis-leveling.
The cascade is designed, automatically-handled resilience: a normal
run should stay silent, and -v/verbose reveals the chain when
debugging. Both messages are now INFO with byte-identical text (log
greps keep working). A chain that exhausts every fallback still
propagates a real error to the caller.
'just use-local' was a [unix]-gated bash shebang recipe — advertised in help.just and referenced by analysis.just / bench_uffs.just, but absent on Windows, where a just shebang recipe hands bash a raw C:\... temp path whose backslashes bash eats (exit 127), and a plain 'bash script.sh' line resolves to WSL's cargo-less System32 bash. The recipe body now lives in scripts/dev/install-bins.rs (rust-script, zero dependencies — ported from the uffs-products install flow, minus the demo/full flavor split which is a products-only concept): - stops the resident daemon + MCP first (10s-capped 'uffs --daemon kill', then pkill/taskkill), preserving the old recipe's step 0 — required on Windows, where a running .exe is file-locked; - one 'cargo build --release --workspace'; - installs EVERY binary cargo reports having built, discovered via --message-format=json (instant from cache) instead of a hardcoded list or target/release globbing — a new [[bin]] anywhere in the workspace is picked up automatically, .exe handling comes free; - fresh-inode copy (rm before cp) so macOS cannot re-use a path-cached Launch Services deny verdict against an earlier broken copy; - warns when ~/bin is not on PATH. The [unix] bash recipe is replaced by a single platform-neutral 'use-local: rust-script scripts/dev/install-bins.rs'.
githubrobbi
enabled auto-merge
July 23, 2026 14:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
just use-localwas a[unix]-gated bash shebang recipe — advertised inhelp.justand referenced byanalysis.just/bench_uffs.just, but absent on Windows: a just shebang recipe hands bash a rawC:\...temp path whose backslashes bash eats (exit 127), and a plainbash script.shline resolves to WSL's cargo-lessSystem32bash.The recipe body now lives in
scripts/dev/install-bins.rs(rust-script, zero dependencies — already the established pattern throughoutscripts/dev/), and the recipe becomes one platform-neutral line.What the script does:
uffs --daemon kill, thenpkill/taskkillforuffsd/uffsmcp, all best-effort) — preserving the old recipe's step 0, and required on Windows where a running.exeis file-locked.cargo build --release --workspace.--message-format=json(instant from cache) rather than a hardcoded list ortarget/releaseglobbing — a new[[bin]]anywhere in the workspace is picked up automatically, and.exehandling comes free.~/binis not on PATH.Verified: script compiles standalone with plain
rustc(no external deps),just -n use-localresolves, REUSE header matchesbuild-local.rs.