Mise is aware of, but doesn't apply env variable expansions from multiple files #3897
Unanswered
jmoppel
asked this question in
Troubleshooting and bug reports
Replies: 2 comments
-
Update: I reread the docs again the Multiple env._ Directives section, and tried using multiple [[env]]
_.file = ".envs/.dev/.postgres"
[[env]]
_.file = ".envs/.dev/.local" That still didn't seem to work either. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Something weird going on here. Sometimes I can recreate your problem and sometimes it works as you want. I thought it might have something to do with the order the files are imported, either based on the updated/created timestamps or alphabetical, but I can't reliably reproduce anything. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an issue with variable expansion in .env files. I don't think it is a dotenvy problem. Essentially, two of of my environment variables are blank that use env variable expansion. However, when I issue mise envs, it shows the correctly expanded values.
I have two env files
.postgres
and.local
.The PGTEST and PGTESTING env variable values are returning blank.
$ printenv |grep PG PGTESTING= PGTEST= PGHOST=postgres
However, when I run
mise envs
, it shows the proper exports.I realize this usage isn't covered in the docs, but thought I'd check and see if I need to configure things differently. For now, I'm just loading the env files with hooks, so I have a workaround.
Mise doctor output
Beta Was this translation helpful? Give feedback.
All reactions