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

Fix --mutex #1717

Merged
merged 2 commits into from
Nov 7, 2016
Merged

Fix --mutex #1717

merged 2 commits into from
Nov 7, 2016

Conversation

peterebden
Copy link
Contributor

Fixes --mutex, which currently doesn't pass the file specifier into repeated calls, and so multiple parallel calls don't correctly exclude one another.

Test plan

Tested via running:

for i in `seq 1 5`; do
   ~/git/yarn/dist/bin/yarn install --pure-lockfile --mutex file:/tmp/yarn & 
done

For packages with a reasonable number of dependencies, this fails pretty reliably on master with various errors from ~/.cache/yarn. After this change there are many messages about waiting for the other yarns to finish, and all then complete successfully.

@sebmck sebmck merged commit c209f84 into yarnpkg:master Nov 7, 2016
bestander pushed a commit to bestander/yarn that referenced this pull request Nov 9, 2016
* Fix --mutex, pass specifier through to repeated promise calls.

* Minor grammar fix
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