-
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
yarn is not syncing scoped packages with the offline mirror when automatic pruning is enabled #3509
Comments
This post enabled me to fix my issue, by excluding |
Yes, I can confirm that without setting |
PR with a fix is welcome |
pruneOfflineMirror is just a function in install.js, should be a straight forward fix. |
I tried offline pruning true with scoped packages on the 0.27.3 RC and it is working as expected. I don't know exactly what changed, but it was probably something for #3154. This can probably be closed. |
Thanks for the update. I was planning to look into this issue today, but I'm glad to hear it appears to be fixed already. |
Thanks for reporting |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When using and offline mirror and setting
yarn-offline-mirror-pruning
totrue
the offline mirror does not sync scoped packages.If the current behavior is a bug, please provide the steps to reproduce.
I've put up a repo reproducing the bug from scratch. This seems to be closely related to #3154.
The steps to reproduce are simple, you can use an existing
yarn
-powered project:yarn-offline-mirror
is configured andyarn-offline-mirror-pruning
is set totrue
in local.yarnrc
.yarn add @kadira/storybook
.The package for storybook will not be in the offline mirror directory. It's worth noting that it's underlying dependencies will be added, but the main module won't.
Both
package.json
andyarn.lock
syncing will work as usual, the offline mirror will fail silently.What is the expected behavior?
It's expected that the offline mirror will be synced with
yarn.lock
for all packages, including scoped packages.Please mention your node.js, yarn and operating system version.
Yarn v0.24.6
Node v7.2.2
macOS 10.12.5
The text was updated successfully, but these errors were encountered: