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
Linking dependencies across drives is slow #7164
Comments
I would expect the patterns passed here should just match the pattern for the modules I am installing. https://github.com/yarnpkg/yarn/blob/master/src/package-linker.js#L723 |
Within this function I can log, and I see this... Change: console.log('preparePatternsForLinking', { cwdIsRoot, patterns }) Output:
Why are all these files being included for checking? In this case I am running |
By replacing this function with the following: async fetchRequestFromCwd(): Promise<InstallCwdRequest> {
const original = await Install.prototype.fetchRequestFromCwd.call(this, this.args);
return {
...original,
patterns: []
}
} Things speed up a bunch, and the module I want gets installed as I would expect, but then all the other modules are removed... I feel like it should be that only modules matching the currently installing dependency should be touched, anything else should stay static, unless requested to be changed |
Hi, I'm unsure how to make progress here, is there some way I can push this forward? If there are any hints on this I can do a pull request. In its current form I can't use yarn at all if utilizing the additional drives. |
I'm seeing this same issue. Took 15+ minutes on network share vs. 10 seconds locally. |
I've made a repro for this https://github.com/sibelius/yarn-workspaces-slow |
I am also seeing it to be very slow. |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
When installing any package with yarn, my entire node_modules files are cloned, this happens in what I think is the "Linking Dependencies" phase
I think it is related to this:
#6177
I usually run of an SSD, but whenever I use the HDD the process is super super slow, to the point where I have to go out and come back 10 minutes later...
When running in verbose mode I see this:
So the problem happens when copying from one drive to another, which is super frustrating because now yarn forces me to use only one drive.
If the current behavior is a bug, please provide the steps to reproduce.
yarn add --dev react-testing-library
What is the expected behavior?
For
yarn add
to be fastPlease mention your node.js, yarn and operating system version.
The text was updated successfully, but these errors were encountered: