We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
version: "3" env: DUMMY: "foo" tasks: default: cmds: - echo "DUMMY=${DUMMY}"
$ task -s DUMMY=foo $ env DUMMY=placeholder task -s DUMMY=placeholder
$ env DUMMY=placeholder task -s DUMMY=foo
Outputs the value declared in the Taskfile.
Taskfile
Value declared in env is used for tasks irregardless to existing values. This used to work in a previous version, not sure where it stopped.
env
The text was updated successfully, but these errors were encountered:
Hi @ahawkins, thanks for opening this issue!
Actually, the behavior was kinda undefined (and undocumented) before. It could take one variable or the other depending on the name.
After v3.2.2, we determined that system env have preference over Taskfile envs. See the CHANGELOG and #425.
Sorry, something went wrong.
No branches or pull requests
Example Taskfile showing the issue
Example Behavior
Expectation
Outputs the value declared in the
Taskfile
.Value declared in
env
is used for tasks irregardless to existing values. This used to work in a previous version, not sure where it stopped.The text was updated successfully, but these errors were encountered: