Skip to content
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

Write should always end with a newline #128

Closed
wants to merge 2 commits into from
Closed

Conversation

ruudk
Copy link

@ruudk ruudk commented Dec 11, 2020

When modifying an ini file I noticed the file did not end with a newline. Not sure if this was done intentionally, but this changes that.

@ruudk ruudk marked this pull request as ready for review December 15, 2020 14:02
godotenv.go Outdated Show resolved Hide resolved
@ruudk ruudk closed this Mar 11, 2021
@ruudk ruudk deleted the patch-1 branch March 11, 2021 12:00
@ruudk ruudk restored the patch-1 branch January 10, 2022 10:34
@ruudk ruudk reopened this Jan 10, 2022
@ruudk
Copy link
Author

ruudk commented Jan 10, 2022

I think this is still relevant. Just noticed that a script was broken. I have a go program that modifies .env files, and then another script tried to append to the modified .env file, assuming that every file is always ended with a newline. Since the go program didn't write the newline, the appended env var was added to the value of another key.

@ruudk
Copy link
Author

ruudk commented Jan 10, 2022

I see this is already handled in #133

@ruudk ruudk closed this Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants