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
[vcpkg] Add x-ignore-lock-failures #14397
[vcpkg] Add x-ignore-lock-failures #14397
Conversation
This should fix microsoft#14281 at least as a stopgap. Additionally, adds better errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this do the right thing? x-wait-for-lock
is already off by default...
(To clarify, I thought we only set |
@BillyONeal yeah, |
That's not what this does though; it's making |
yeah, exactly; if someone is dealing with "Weird Things", they can use this to disable the lock to just get things working. |
Why can't they just not pass
Can't we distinguish between "failed to take the lock because of an error" and "failed to take the lock because there's another vcpkg alive here"? |
@BillyONeal yes, we can, that's why |
I'm saying that it is unclear here why instead of adding a switch that says "don't do X", we aren't just asking the user to not pass the switch that says "do X". If the user didn't pass |
@BillyONeal you need a lock in order to do anything? I'm confused where you're confused. If you have a This solves an entirely different issue, which is where the lock isn't get-able for reasons that aren't "it's already taken". |
I discussed this with @strega-nil over IM and my confusion was because I was thinking the world was like this: |
This is "info:reviewed" but I'm not merging it because Nicole has the power to do that herself and might want further feedback from others on the team |
* [vcpkg] Add disable-lock options This should fix microsoft#14281 at least as a stopgap. Additionally, adds better errors. * billy CRs * change from "disable-lock" to "allow-spurious-lock-failures" * billy cr
This should fix #14281 at least as a stopgap.
Additionally, adds better errors.