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

Use RunWithEnv instead of os.Setenv to avoid environment variable races #507

Merged
merged 1 commit into from
Jul 24, 2018

Conversation

itchyny
Copy link
Contributor

@itchyny itchyny commented Jul 17, 2018

Using os.Setenv here may cause unexpected behavior when collectValues and loadPluginMeta are called concurrently. No issue report is filed yet though (it does not happen luckily or never happen when GOMAXPROCS is set to 1, even though I think we should fix this).

@itchyny
Copy link
Contributor Author

itchyny commented Jul 24, 2018

Thank you.

@itchyny itchyny merged commit 4961820 into master Jul 24, 2018
@itchyny itchyny deleted the improve-plugin-meta-env branch July 24, 2018 06:46
@susisu susisu mentioned this pull request Jul 25, 2018
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.

2 participants