Skip to content

Fix race condition in temporary files#433

Open
markshep-wbg wants to merge 2 commits intomailru:masterfrom
markshep-wbg:temp-file-fix
Open

Fix race condition in temporary files#433
markshep-wbg wants to merge 2 commits intomailru:masterfrom
markshep-wbg:temp-file-fix

Conversation

@markshep-wbg
Copy link
Copy Markdown

When running multiple instances of easyjson in parallel in the same directory they can interfere with each other and cause failures. That's because the temporary file doesn't include a unique string. This PR fixes that by adding an asterisk to the filename pattern. It also replaces some deprecated calls to ioutil funcs with their replacements.

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.

1 participant