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
[BUG] just without arguments runs lint instead of listing recipes #254
Running just without arguments should display the list of available recipes (via the default recipe), but instead it runs the lint recipe (uv run ruff check .).
Steps to Reproduce
Run just with no arguments in the project root
Expected Behavior
just displays the list of available recipes (equivalent to just --list --unsorted), as defined by the default recipe in the justfile.
Actual Behavior
just runs the lint recipe (uv run ruff check .) because lint is the first recipe in the file and just uses the first recipe as its default.
Environment
OS: Linux 6.17.0-14-generic
just: system-installed
Additional Context
The default recipe exists at line 37 of the justfile, but the lint recipe at line 11 comes first. In just, the first recipe in the file is the one that runs when invoked without arguments. The lint / format / precommit quality recipes were likely added above default at some point, breaking this behavior.
Possible Solution
Move the default recipe (and optionally the entire "INFO" section) above the "CODE QUALITY" section so it becomes the first recipe in the file.
Activity
test(setup): add regression test for just default recipe listing
fix(setup): move default recipe before lint to restore recipe listing
docs: add changelog entry for just default recipe fix
fix(setup): restore just default recipe listing (#256)
chore: release 0.3.0 (#270)