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

WSL: yarn always links all dependencies #5591

Closed
csvan opened this issue Mar 28, 2018 · 4 comments
Closed

WSL: yarn always links all dependencies #5591

csvan opened this issue Mar 28, 2018 · 4 comments
Assignees
Labels

Comments

@csvan
Copy link

csvan commented Mar 28, 2018

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

Bug (possibly env related)

What is the current behavior?

When running yarn 1.5.1 in Windows Subsystem for Linux (WSL) on Windows 10 (1703), repeated installs will copy ALL dependencies from the yarn cache to node_modules, rather than just the ones that have changed since last install. I.e. the linking dependencies step will be repeated in full each install.

If the current behavior is a bug, please provide the steps to reproduce.

  1. run yarn install in WSL on a project with at least one dependency
  2. Remove the yarn.lock file
  3. run yarn install again

What is the expected behavior?

Subsequent installs should only link the dependencies which have changed.

The above, correct behavior occurs when the process is repeated in Cygwin or Powershell, and hence only happens in WSL.

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

Node 9.8, Yarn 1.5.1, Windows 10 Enterprise (1703)

@ghost ghost assigned torifat Mar 28, 2018
@ghost ghost added the triaged label Mar 28, 2018
@swrobel
Copy link

swrobel commented Mar 29, 2018

I believe this happens on all platforms. It definitely does on my machines, macOS 10.13. I hate this behavior.

@csvan
Copy link
Author

csvan commented Mar 29, 2018

I'm absolutely sure this does not happen under Cygwin. Need to see if I can reproduce on a Linux box

@justjoeyuk
Copy link

This really needs to be fixed, taking 5-10 mins for me to add a single package at this state.

@rally25rs
Copy link
Contributor

duplicate #932 (there is a PR open as well)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants