-
Notifications
You must be signed in to change notification settings - Fork 506
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
Empty ENV is removed instead set as empty string in version 2.3 #339
Comments
Problem is in multiline parser When i define env vars with new line between them:
it is parsed as:
|
Thank you for the bug report. Looking into potential solutions now. |
We just shipped version 2.4.0 which removes the |
@wbotelhos Yes we can pass empy string. But define variable without value is valid. No value as just empty string quotes is very rare. |
Steps to reproduce
In file
.env.development
i have these variables:Expected behavior
Variables should be parsed as:
Actual behavior
In 2.3 missing whole keys
DATABASE_PASSWORD
and alsoDATABASE_USERNAME
because it is next after empty env variable.Everything OK in 2.2
System configuration
dotenv version: 2.3
Rails version: 5.2
Ruby version: 2.5
The text was updated successfully, but these errors were encountered: