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

Deadlock building fresh dependencies caused by error looking up modules #2232

Open
calavera opened this issue Dec 12, 2016 · 0 comments
Open

Comments

@calavera
Copy link

calavera commented Dec 12, 2016

Do you want to request a feature or report a bug?

This is a bug

What is the current behavior?

There is a deadlock building fresh dependencies when yarn fails to load modules. There are other similar reported errors, but I'm not sure if the cause is the same, so I opened a new issue:

#2142
#1981

I'm attaching a screenshot so you can see the state when Yarn is locked:

screenshot from 2016-12-12 15-01-26

Steps to reproduce:

  1. Clone a test repo I put together for you:
git clone https://github.com/calavera/test-yarn-scripts
  1. Run the script script/test-build.sh:
script/test-build.sh https://github.com/netlify/netlify-cms "npm run build"

That script uses Docker to isolate what's downloading from the internet inside a container, but you can reproduce it without Docker, the code is pretty straightforward.

What is the expected behavior?

Dependencies to install, or Yarn to fail when there is an error 😸

Please mention your node.js, yarn and operating system version.

The project downloaded with test-build uses Node 4.7.0, but I've seen similar behavior with 6.9.1. Yarn's version is 0.18.0. The container uses an Ubuntu 14.04 image.

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

No branches or pull requests

1 participant