-
Notifications
You must be signed in to change notification settings - Fork 503
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
set working-directory := justfile_directory() #2333
Comments
Neither solves the case that you can't set the working directory programmatically for the whole file. You can already set it statically, so it seems odd. |
@anacrolix Yah, this is an unfortunate limitation of how evaluation works. Expressions can run commands, access files, and read environment variables, so how they execute depends on settings, so the value of settings can't be arbitrary expressions. The ultimate solution is probably to allow only expressions which don't depend on settings in setting values, see #2309, but that's a big change. |
Thanks! And thanks for the effort on the great project. |
Of course! Thank you for the kind words ^_^ |
I can't seem to set the working directory to remain unchanged.
Essentially I want
[no-cd]
to be the default everywhere.Previously I've achieved this using a shebang with
#!/usr/bin/env -S just --working-directory . --justfile
but this doesn't work if I just invokejust
in a directory, rather than execute thejustfile
directly.The text was updated successfully, but these errors were encountered: