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
pixi tasks nicely support environment variables. Being able to inject environment variables from a .env file could make it easy for injecting host-specific environment variables into pixi run <task-name> without having to manually source the .env file first.
I will leave this here for voting. It's a nice-to-have for me - maybe somebody else would also find this useful for their workflow?
The text was updated successfully, but these errors were encountered:
croth1
changed the title
Add support for injecting dotenv environment variables into tasks
Support injecting dotenv environment variables into tasks
May 6, 2024
I've been using generated .env's as outputs to isolate/generate settings in the absence of a solid matrix mechanism.
If .env is supported, seems like it would need a fair amount of specificity to handle the breadth of ways it is used, ideally providing a way to compose in a predictable order with other configuration:
@bollwyvl, interesting, to be honest I haven't thought about how deep this needs to go - just a weekend observation 😬 Would be one env file per environment enough for your use case? Behaviour like:
By default all environments will source .env. Beyond that allow overwriting this behaviour by setting one per environment, like:
[environments.test]
features = ["test"]
env-file = ".test.env"
(config example is not an implementation suggestion, just for conveying the concept)
Problem description
pixi tasks nicely support environment variables. Being able to inject environment variables from a
.env
file could make it easy for injecting host-specific environment variables intopixi run <task-name>
without having to manually source the .env file first.I will leave this here for voting. It's a nice-to-have for me - maybe somebody else would also find this useful for their workflow?
The text was updated successfully, but these errors were encountered: