-
Notifications
You must be signed in to change notification settings - Fork 34
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
don't panic: on bad dependencies #36
Comments
Nice find! Using |
There might be an incentive though to authorize people using |
This also makes me wonder how would the solver react to a dependency using the same package (I suppose packages in the hash map will be overwritten leading in pretty wrong conclusions). Something like |
This is a hack but is the Some(x) => {
if x.values().any(|r| r == &Range::none()) {
// todo: what is the correct Incompatibility?
state.add_incompatibility(|id| {
Incompatibility::unavailable_dependencies(id, p.clone(), v.clone())
});
continue;
}
x
}, Witch gets this test to pass. What would be a more elegant solution? |
Maybe we should fail, with a dedicated error type explaining why |
Minimizing from the panic found in #34 (comment). I get the small test case of:
While this is a silly input, we should not panic on it.
The text was updated successfully, but these errors were encountered: