-
Notifications
You must be signed in to change notification settings - Fork 405
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
Doesn't support multiline vars #64
Comments
While most of the discussion on this is happening in #65 I'd rather talk about it here in case the ultimate solution is a different PR. Given I use the ruby dotenv implementation as the informal spec a solution should follow the form of bkeepers/dotenv@b3bd635 and expand newlines within double quotes only. |
Thanks for pointing out the spec @joho I'll try to amend my PR today addressing this |
BTW I'm aware the internals need a fair overhaul and if that's a job you don't necessarily want to take on don't feel like you have to, |
No need to worry man; I'm glad you took the time to put together this library 😊 I wouldn't mind tweaking the internals; although I would take a jab at it on a different PR |
I would like to point out that it's possible to use |
Any updates on this? I am still having issues with the following env var:
I am still getting |
inoda if you base64encode it for now and store it as that in the .env file, its a happy workaround, then just base64decode it when you need to use the env variable |
@inoda You can probably just remove the actual line breaks (keeping the |
I haven't yet had a close look at #118 but that may address it |
This is to get around joho/godotenv#64
bkeepers/dotenv#423 some changes in the upstream lib to maintain compatibility with |
This is now fixed via #156 (which was an expansion of #118) Thanks @x1unix for the bulk of the work, and @austinsasko and @coolaj86 for some key suggestions. Sorry it took so long... go's no longer my daily driver, startup life, parent life, and frankly i've always been bad at "chores" Release plan is to let it sit on main for a while, see if anyone raises regressions. I might do a prerelease version number, might not. Then will release as a minor version bump. |
I've received no complaints or bug reports about the pre-release, so I shall act as though absence of evidence is evidence of absence. Pushing actual release today. |
It seems that multiline var reading works very well. But writing back to file NOT working. |
If I set something like this:
godotenv
returns:Can't separate key from value
Even though that's a valid variable assignment.
I'm currently at work; will attempt a fix later this week.
The text was updated successfully, but these errors were encountered: