-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
"unpack in the same destination" warning when different semver#^x.x.x points to the same major version #6907
Comments
I'm fighting the same issue, and in my case the main project is depending on Yarn copies the module files into My team is using |
It seems this has been unresolved (and not even acknowledged by the project maintainers) for about 17 months now: #4812 |
...moreover, this only happens when I do a fresh So much for yarn's deterministic behavior... :-( |
|
Final test: Even locking both dependencies down to the same patch level results in this warning and module foo's
|
@maranomynet sorry to ask 6 months later but were you running yarn on osx? I am currently grasping for straw with a yarn issue on a project that does osx builds. |
Yes, I am using OSX, yet this (still) is not a OSX specific issue |
We cannot use `process-polyfill` as the package name due to a bug in Yarn v1. The errors results in a dependency conflict with `node-stdlib-browser` which fails to import `process/browser.js`. yarnpkg/yarn#6907
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Example project with a main repo (latest v1.0.0), a module (latest v2.0.3) and a shared-module (latest v1.0.1).
Main project is depended on module and shared-module (with semver:^1.0.1)
Module is also depended on shared-module (with semver:^1.0.0)
On main repo,
yarn upgrade
gives the following warning:warning Pattern ["test-shared-module@github:bulentv/test-shared-module#semver:^1.0.1"] is trying to unpack in the same destination "/home/bulent/.cache/yarn/v4/npm-test-shared-module-1.0.1-62f4ccb5a503c8f3dd5f11f31cd2c677c7dae722/node_modules/test-shared-module" as pattern ["test-shared-module@bulentv/test-shared-module#semver:^1.0.0"]. This could result in non-deterministic behavior, skipping.
If the current behavior is a bug, please provide the steps to reproduce.
do a
yarn upgrade
Example repos mentioned above that you can use to reproduce the issue:
https://github.com/bulentv/test-shared-module
https://github.com/bulentv/test-module
https://github.com/bulentv/test-main-project
What is the expected behavior?
Since shared-module semver#^1.0.0 and shared-module semver#^1.0.1 should both retrieve and extract the latest version of the repo, which is currently v1.0.1, this shouldn't be a problem and the warning should not be generated.
Please mention your node.js, yarn and operating system version.
yarn: 1.12.3
node: v10.14.2
OS: Ubuntu 18.04
The text was updated successfully, but these errors were encountered: