Enhancement: Different environment variables with multiple configuration environments #4311
tomasfarias
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my workflow, I use different sets of environment variables depending on which environment I am working on.
While reading about config environments, I assumed the following would be possible: Have multiple
.mise.*.toml
files with different environment variables, and set different environment variables depending on what I setMISE_ENV
to.However, I tested it out, and noticed that this was not supported:
To elaborate:
MISE_ENV="prod" echo $TEST_PROD
doesn't echo out theTEST_PROD
environment variable configured in.mise.prod.toml
, andMISE_ENV="prod" echo $TEST
echoes back the environment variable configured in the top level.mise.toml
, not the override set in.mise.prod.toml
.It would appear that the files are being read in the right order, given
mise cfg
, and I am not sure if there is any other way to achieve this. So I'd like to know if this would be a wanted enhancement. I'd be happy to contribute some code to mise, the tool is great!Beta Was this translation helpful? Give feedback.
All reactions