Skip to content

How to pass environment variables into pixi run? #3495

Discussion options

You must be logged in to vote

The answer is to do exactly as I was doing

ENV_VAR=VALUE pixi run <task name>

The reason

CPU_COUNT=10 pixi run build-locally

doesn't work is because build-locally runs .scripts/run_docker_build.sh which doesn't take its values directly from the environment.

CPU_COUNT=10 pixi run build-linux_64_

works as expected and great though. 👍

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by matthewfeickert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant