-
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
Packages with build artifacts missing, but listed in .yarn-integrity, should be rebuilt. #3781
Comments
Good find |
Send a PR please :) |
For posterity, this was exacerbated by previous issues (seemingly fixed, mostly by |
This was largely addressed by #3752, which ensures that interrupting install does not result in unbuilt packages / package artifacts getting removed. However, should artifacts be touched inappropriately in the future by an offender other than #3752, it would still be nice to have this check in place. |
I think I can rig up a PR for this (I came up with it while researching another bug) but I think we should consider the balance of speed vs checking everything. What are the chances that a previously installed package will be missing build artifacts? We can check all packages for their artifacts every time, but it'll be another loop added to the code to Do you think this is worth adding more filesystem i/o to check what is likely not a widespread issue? If so, I'll put up a PR. @CrabDude @bestander |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Packages are not rebuilt if all non-build artifacts already exist at the destination. This results in errors like:
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
If a file contained in
.yarn-integrity
is missing (or maybe even the wrong size or mtime), the package should be rebuilt.Please mention your node.js, yarn and operating system version.
[email protected]
yarn@master:HEAD (69574f6)
Docker ubuntu12.04
Related:
#231 #1955 (comment)
#1955 (comment)
The text was updated successfully, but these errors were encountered: