-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
just --list --unsorted deals with imports in reverse order. #2076
Comments
Fixed in #2085. Thank you for the report! |
You're most welcome. Now, I'll have to reverse all my imports... |
Hmmmh. I just built 1.27.0 (which is where I see the puported fix in the git history). And I still see the buggy behaviour.
import "task1.just"
import "task2.just"
[private]
@help:
just --list --unsorted --justfile "{{ justfile() }}"
task1:
echo Task 1
task2:
echo Task 2 When running Available recipes:
task2
task1 Wrong ordering. I don't see it fixed. |
Sigh, I fixed it for modules, not imports 😅 |
Fixed in #2092! |
Yes. Much better. However, if you allow me to be a pain, here is another related behaviour, which I'm not sure will be most easy to address:
import "task1.just"
import "task2.just"
[private]
@help:
just --list --unsorted --justfile "{{ justfile() }}"
task3:
echo Task 3 That will render as follows: Available recipes:
task3
task1
task2 Not sure how easy that behaviour will be to fix. Should I open another issue ? |
Hmmm, the current behavior is that recipes in the current module are printed first, then recipes from imports, which are printed first by the order of the import in the top file, and then in the order they appear in the import. I can see the argument for printing them, in the case of your example, in |
OK. Discussion ? Or issue ? I assume discussion. |
@casey Wow !! Modules are pretty impressive !! Thank you so much !! |
Hi.
Just noticed the following: whereas
just --list --unsorted
lists the recipes in the order in which they are defined in the Justfile, it lists the recipes in the imported Justfiles in the reverse order in which the Justfiles are imported.This is hugely counterintuitive.
The text was updated successfully, but these errors were encountered: