-
Notifications
You must be signed in to change notification settings - Fork 183
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
Support setting the --environment flag via env var #889
Comments
I'm trying to understand the use-case, as I think it would be more transparent in GitHub actions if you do: pixi run -e $PIXI_ENVIRONMENT_NAME install_sdk The problem I see is that people unexpectedly start running with different environments than they expect, thus we would need to add more logging or other logic to make sure that doesn't happen. |
Note that once #900 is merged this will work out of the box. |
I like this approach since this ensures that you are running the proper commands when you are in Maybe also add the behavior that you don't activate again if the env var is already set? But this might be a bit too much magic... |
I think there are two cases:
We could also look at the WDYT? |
I think as long as we print something when this env var is actually set the "magic" behavior that may exist goes away |
We've decided that we want to implement as @baszalmstra describes. Adding the warning as @mariusvniekerk describes is a nice to have. |
Fixed in: #1080 |
Problem description
When running a
pixi
task in an config that has >1 environment and the task is defined in default env pixi will ask you to specify the environmentIt would be a nice ux improvement to allow setting the environment flag by means of the
PIXI_ENVIRONMENT_NAME
env varThat will allow a bunch of associated tasks to be more easily coordinated from a higher order place (or using the env var as a matrix in things like github actions)
The text was updated successfully, but these errors were encountered: