fix(just): list recipes on a bare just #84

Merged
Claude-Run merged 1 commit from fix/justfile-default-recipe into main 2026-08-01 02:19:12 +02:00
Member

just resolves the no-argument recipe by source order in the root justfile and never selects an imported recipe, so common's default never applied and the first locally defined recipe won: watch. Typing just to discover recipes started a cargo-watch loop that had to be interrupted.

Define default (running @just --list) as the first recipe in the local justfile, and add set allow-duplicate-recipes := true so it may shadow common's identically named recipe. Correct the header comments that claimed default was inherited and that the setting was unnecessary, and note that recipe order matters here. CLAUDE.md carried the same stale claim about no shadowing.

Because "default stays first" is invisible to the compiler, the Check workflow now asserts the first recipe in the justfile is default: and fails otherwise.

#FJ-65

`just` resolves the no-argument recipe by source order in the root justfile and never selects an imported recipe, so common's `default` never applied and the first locally defined recipe won: `watch`. Typing `just` to discover recipes started a cargo-watch loop that had to be interrupted. Define `default` (running `@just --list`) as the first recipe in the local justfile, and add `set allow-duplicate-recipes := true` so it may shadow common's identically named recipe. Correct the header comments that claimed `default` was inherited and that the setting was unnecessary, and note that recipe order matters here. CLAUDE.md carried the same stale claim about no shadowing. Because "default stays first" is invisible to the compiler, the Check workflow now asserts the first recipe in the justfile is `default:` and fails otherwise. #FJ-65
fix(just): list recipes on a bare just
All checks were successful
Check / fmt + clippy + build + tests (pull_request) Successful in 1m21s
Create release / Create release from merged PR (pull_request) Has been skipped
0f36dfc131
`just` resolves the no-argument recipe by source order in the root justfile and never selects an imported recipe, so common's `default` never applied and the first locally defined recipe won: `watch`. Typing `just` to discover recipes started a cargo-watch loop that had to be interrupted.

Define `default` (running `@just --list`) as the first recipe in the local justfile, and add `set allow-duplicate-recipes := true` so it may shadow common's identically named recipe. Correct the header comments that claimed `default` was inherited and that the setting was unnecessary, and note that recipe order matters here. CLAUDE.md carried the same stale claim about no shadowing.

Because "default stays first" is invisible to the compiler, the Check workflow now asserts the first recipe in the justfile is `default:` and fails otherwise.

#FJ-65
Claude-Run deleted branch fix/justfile-default-recipe 2026-08-01 02:19:12 +02:00
Sign in to join this conversation.
No reviewers
No labels
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
pandoras-box/forgejo-cli!84
No description provided.