-
-
Notifications
You must be signed in to change notification settings - Fork 641
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
convert env var defined in .env as variable #379
Comments
Hi @kernel164, Thanks for reporting, this is indeed a bug |
I don't really know if this has a relation but: APP_ENV=dev dotenv: ['.env']
env:
...
vars:
ENV: $APP_ENV
tasks:
hmm:
cmds:
- echo $APP_ENV "APP_ENV": executable file not found in $PATH Same if I replace I need to initialize a global variable with an .env value (default bahavior). |
I believe I have the same issue as well. Looks like environment variables are not usable within vars.
where This is quite crucial if you only want to have environment specific variables in Otherwise you'll have to do this in the
|
Fixed in master |
Thanks a lot for working on this! I've just tested this and looks like it is broken in the way I'm trying to use this. this works:
However when removing the I get the following error message:
I did not dig deep in the code to understand why this is happening, maybe you got an idea. Thanks in advance! |
os: macos
Task version: 3.0.0
.env
Taskfile.yml
Output:
The text was updated successfully, but these errors were encountered: