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
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pixi, using pixi --version.
pixi --version
Task:
just-test = { cmd = [ "export STACK_NAME=fargate-batch-job", "&&", "echo $STACK_NAME" ] }
pixi run just-test ✨ Pixi task (ci): "export STACK_NAME=fargate-batch-job" && "echo $STACK_NAME" export STACK_NAME=fargate-batch-job: command not found Available tasks: build-wheel deploy download_database just-test just-test-2 postinstall-production start test (grayskull) (base) ➜ oligo
just-test-2 = "export STACK_NAME=fargate-batch-job && echo $STACK_NAME"
✨ Pixi task (ci): export STACK_NAME=fargate-batch-job && echo $STACK_NAME fargate-batch-job (grayskull) (base) ➜ oligo
It seems that export / referencing environment variables in the "cmd" way to define tasks is not working as expected.
Both examples should work the same way.
The text was updated successfully, but these errors were encountered:
This is actually because of this issue: #837
So will close it, in favor of that.
For now, either use the multi-line toml notation or separate per word in an array.
just-test = { cmd = """ export STACK_NAME=fargate-batch-job && echo $STACK_NAME """} just-test2 = { cmd = [ "export", "STACK_NAME=fargate-batch-job", "&&", "echo", "$STACK_NAME" ] }
Sorry, something went wrong.
ty for the quick reply!
No branches or pull requests
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.Reproducible example
Task:
Task:
Issue description
It seems that export / referencing environment variables in the "cmd" way to define tasks is not working as expected.
Expected behavior
Both examples should work the same way.
The text was updated successfully, but these errors were encountered: