You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing any task normally, such as task mytask (without overwriting the variable ENVIRONMENT), everything works as expected, and the environment variables from the .env.dev file are loaded. However, when I overwrite the environment variable with task mytask ENVIRONMENT=prod, the variable is updated to prod within the task, but the .env.dev file is still loaded.
It appears that the variable is overwritten only after the dotenv file is loaded. I would expect the change to be applied beforehand. This would be highly useful for managing the environment on a global level.
Task version:
v3.40.0
Operating system:
ProductName: macOS
ProductVersion: 14.3
BuildVersion: 23D56
Experiments enabled:
no
The text was updated successfully, but these errors were encountered:
I created the following task file:
When executing any task normally, such as
task mytask
(without overwriting the variableENVIRONMENT
), everything works as expected, and the environment variables from the.env.dev
file are loaded. However, when I overwrite the environment variable withtask mytask ENVIRONMENT=prod
, the variable is updated toprod
within the task, but the.env.dev
file is still loaded.It appears that the variable is overwritten only after the dotenv file is loaded. I would expect the change to be applied beforehand. This would be highly useful for managing the environment on a global level.
The text was updated successfully, but these errors were encountered: