Possible to invoke a justfile as a shebang script via symbolic link ? #2633
simonmichael
started this conversation in
General
Replies: 3 comments
-
This is one workaround:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Another:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Perhaps it is a bug though, that (without these workarounds) the file specified explicitly with -f is not used ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thanks for just! I have
notes/Justfile
, with executable permission and a shebang line likeThis works if I run it directly as
notes/Justfile
, but not if I symlink it to a more convenient name likenote
in PATH and then runnote
. In that case it ignores its own recipes and uses recipes from another justfile in a parent directory. I guessjust
's justfile finding logic is defeated by the unusual name.Is there way to make this work currently, and does anyone have ideas for how it could be made more robust ?
Beta Was this translation helpful? Give feedback.
All reactions