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

support newlines in parsing env files #990

Merged
merged 1 commit into from
Sep 13, 2016

Conversation

zbyte64
Copy link
Contributor

@zbyte64 zbyte64 commented Sep 13, 2016

This is to fix #988 ; Uses/vendors github.com/joho/godotenv to parse env files. Added a test for loading an env file.

test loading env config file
fmt.Sprintf("Updated env vars from %s and restarted acme-inc.", file.Name()),
},
})
defer os.Remove(file.Name())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move this defer a little higher (before the file.Write(content))? Not sure this will get run if the above test fails.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pulled this change in as b55d8b4.

@ejholmes
Copy link
Contributor

Minor comment, but otherwise looks great!

@ejholmes ejholmes merged commit 6f5d316 into remind101:master Sep 13, 2016
@ejholmes
Copy link
Contributor

Thanks @zbyte64!

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.

emp env-load does not support multiline values
2 participants