-
Notifications
You must be signed in to change notification settings - Fork 48
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
Interpolation stops working with SetEnvVars == false
#92
Comments
I already investigated some ways how to solve that, but wanted to add some other partially related fixes first. Target will be to make the Parsers-class more independent by extracting the actual interpolation ==> Parser returns a non-evaluated value, and a separate "Interpolation-Class" will do the interpolation afterwards. |
As explained in #93 (comment) -- SetEnvVar = false 's entire job is to not set the values from .env files into the env, so if you use interpolation, you will only get those env vars that are actually in the env, not from the .env file. This is behaving exactly as it should. Does that address your concern? |
I really do not understand, why with Example:
Why should we get different resulting values here? The inversion of usage (EnvVar first, then DotEnvVar in reading order) is affected by Clobber/NoClobber, but it shouldn' t be affected by SetEnvVar imho. |
Interpolation is not properly working without
SetEnvVars
.TestCase to show that:
Add
LoadOptions.NoEnvVars()
inEnvConfigurationTests-->AddSourceToBuilderAndParseInterpolatedTest
:The test fails now with the first interpolation as shown here:
Originally posted by @Philipp-Binder in #90 (comment)
The text was updated successfully, but these errors were encountered: