Confused by dotenv with variables #2343
Unanswered
waterworthd-cim
asked this question in
Q&A
Replies: 1 comment
-
I believe that this a well known defect. I've written a PR for it #2288 ... which has thus far not received any attention. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I have a taskfile which I defined as below - there are two env files (.env.docker.prod and .env.docker.dev). In the dev version I have DOCKER_PLATFORM=linux/arm64 and in the prod it's linux/amd64).
This doesn't work as expected, running
task ENV=dev
prints (as expected)But
task ENV=prod
printsSo ENV is being set as expected, but dotenv seems to always source 'docker/.env.docker.dev'.
If I restructure the file so ENV is and argument of the specific task I get what I expect
Is this expected behaviour?
Beta Was this translation helpful? Give feedback.
All reactions