override PATH variable in env:
#449
-
I would like to redefine version: '3'
env:
PATH: "/some/path/bin:{{.PATH}}"
OTHER: "/some/path/bin:{{.PATH}}"
tasks:
test:
- echo $PATH
- echo $OTHER and an initial value of
I've tried distinct alternatives such as defining a variable first, then assigning this variables to I also noticed that this behavior applies to any pre-existing environment variable. Is there a limitation with respect to overriding existing variables? If so, do you have a workaround for this? I would like to avoid having to override PATH inside the bash script itself every time that this is needed. If this is something that can be fixed, I can volunteer to send a PR for this, but I'd like to kindly ask for your guidance with high-level instructions on how to go about implementing something like this (I'm new to Task in general, so I'm not familiar with the codebase). thanks a lot for your time! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
found this related issue #301 |
Beta Was this translation helpful? Give feedback.
-
Hi @ivotron, I just answered this on this ticket: #482 (comment) |
Beta Was this translation helpful? Give feedback.
Hi @ivotron,
I just answered this on this ticket: #482 (comment)