Replies: 1 comment 1 reply
-
This is a super common and very reasonable question, but unfortunately there's no good way to do this. foo $PATH:
bar: (foo (justfile_directory() + "/node_modules/.bin" + ":" + env_var('PATH'))) But that's pretty verbose and weird. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Say I want to manipulate som environment variable in a just file. I know I can do that at the top level and have it affect all recipes like so for instance:
export PATH := justfile_directory() + "/node_modules/.bin" + ":" + env_var('PATH')
Now however I'll have changed PATH for in all my recipes and that might not be what I want.
Is there I way I can encapsulate this env var manipulation in a recipe that I can then have other recipes depend on?
The way I understand it ordinary sh-recipes execute independently of one another so env var manipulation in one will not carry over to the next further down the dependency chain.
Beta Was this translation helpful? Give feedback.
All reactions