fix(justfile): run recipes under PowerShell on Windows#75
Merged
Conversation
`set shell := ["bash", "-cu"]` forced every recipe through Git Bash, whose non-login PATH lacks ~/.cargo/bin — so `just repl`, `just test`, etc. failed with `cargo: command not found` on Windows. No recipe needs bash any more (the test discovery pipeline was dropped when `test` became plain `cargo test`), so add: set windows-shell := ["powershell.exe", "-NoProfile", "-NoLogo", "-Command"] PowerShell resolves cargo from the persistent PATH; -NoProfile skips user startup scripts. bash stays the shell for macOS/Linux. Also reorder the multi-line recipe comments so the line adjacent to each recipe is a clean one-liner — `just --list` only shows that adjacent line, and the previous ordering surfaced mid-sentence fragments. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Problem
Every recipe failed on Windows with
cargo: command not found:The justfile pinned
set shell := ["bash", "-cu"], routing recipes through Git Bash — whose non-login PATH doesn't include~/.cargo/bin, socargoisn't found. (Confirmed:powershell -Command cargo --version→ works;bash -cu "cargo --version"→ not found.)Fix
No recipe needs bash any more — the
ls | sed | awktest-discovery pipeline was dropped whentestbecame plaincargo test. So run Windows recipes under PowerShell, where cargo resolves:-NoProfilealso skips user startup scripts (e.g. a fastfetch banner) so recipe output stays clean.Also
Reordered the multi-line recipe comments so the line adjacent to each recipe is a clean one-liner —
just --listshows only that adjacent line, and the old ordering surfaced mid-sentence fragments like# during tight iteration name the targets you touched...as the description.Verified locally:
just --listrenders cleanly and cargo-backed recipes resolve.🤖 Generated with Claude Code