-
Notifications
You must be signed in to change notification settings - Fork 7
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
Running parse
should not mutate the environment
#9
Comments
It looks like there is a |
Aha, I just found #6!
Clearly, I was indeed surprised by this :) Would you accept a PR that reversed that default, and replaced |
Replaces the keep modifier with a clear modifier. The functionality is the same, but now the env clearing is opt-in instead of opt-out. Fixes supki#9
I've come to agree that this was the wrong default, even though it'd been moderately useful in some projects with less experienced developers at $WORK. Most people don't really expect parsing to modify their environment. |
Sample code:
Expected outcome
Actual outcome:
This is breaking things for me because my app loads configuration from the environment at startup, and we load a new
App
value for each of our test cases. So the first test case reads the environment, unsets everything, then subsequent test cases fail.The text was updated successfully, but these errors were encountered: