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

non destroy environment_append #6285

Merged

Conversation

memsharded
Copy link
Member

@memsharded memsharded commented Dec 31, 2019

Changelog: Bugfix: The environment_append() helper does not modify the argument anymore, which caused problems if the argument was reused.
Docs: omit

The environment_append() was destroying the argument, which is dangerous, because this context is called for every recipe method. I have tracked the uses and calls, and it seems that it is always getting a temporary copy as argument, so shouldn't be really causing bugs, but it seems it is worth fixing it.

#tags: slow, svn

@memsharded memsharded marked this pull request as ready for review December 31, 2019 10:33
@memsharded memsharded added this to the 1.22 milestone Dec 31, 2019
Copy link
Contributor

@lasote lasote left a comment

Choose a reason for hiding this comment

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

I'm ok but please add a changelog line because this might cause some side effect on people's recipes if someone is somehow expecting to get the argument modified.

@memsharded memsharded merged commit 3dde3e5 into conan-io:develop Jan 2, 2020
@memsharded memsharded deleted the fix/non_destroy_environment_append branch January 2, 2020 11:53
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.

3 participants