-
Notifications
You must be signed in to change notification settings - Fork 406
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
Variable substitution using real environment variable fallbacks #74
Comments
Also needing this functionality back.. |
@nick-jones @andrewmclagan well 1 year later, I had the same need in my project. I created #102. For now I am using https://github.com/fireworkweb/godotenv (my fork) where I returned the behaviour. Just registering this here in case someone stumbles upon this issue and then can check the latest on this. |
@fabriciojs 👍 there is also #72 and #88. Unfortunately no word from @joho on this. |
Hey @fabriciojs we're looking for similar functionality, but where it is able to read environment variables from Is this something that you would be able to update in your fork? (or @joho) Thanks! |
Also made #227 as all other pull requests got stale due to parser rewrite in version 1.5. |
Is there a fork of this module with env substitution added back? According to #182, the autor sees the module as "complete", I'm not sure on their stance regarding this issue. Edit: I forked, applied #227 and tagged it as |
But also according to #182:
And OG Ruby dotenv has variable substitution using real environment variables, so we can hope that @joho will finally notice #227 one day. |
Yes, expansion from environment also is a feature in JS |
I'll give #227 a review and merge if I'm confident on backwards compatibility |
I've done a pre-release at https://github.com/joho/godotenv/releases/tag/v1.6.0-pre.1 I've set something in my calendar to do the full release on nov 15th (AU time) to give time for bug reports to come in and remediate if needed. |
pre.1 works fine for me, haven't noticed any regressions so far. |
#54 introduced a change that meant substitution of variables from the real environment (i.e. not that derived from
.env
itself) was possible.It looks like #58 removed this behaviour, in particular the deletion of
os.LookupEnv
- https://github.com/joho/godotenv/pull/58/files#diff-224f281bd0a4cfe0e7dcb394e8c7a585L299. Unfortunately it isn't clear from the PR if that was intended. Any chance someone can clarify?The text was updated successfully, but these errors were encountered: