-
Notifications
You must be signed in to change notification settings - Fork 346
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
Incorrect removal of a package with conditional dependency #4727
Comments
The incriminated reverse dependency calculation is here: Lines 1374 to 1377 in 82fb1ad
This is useful when using the "autoremove" flag. We could try to have a separate computation for "guaranteed" reverse dependencies (rather than the "inclusive" set now computed) but that would be quite involved and trigger other weirdnesses. The proper solution would probably be, instead, to remove this preprocessing and let the solver do the work: define an internal Cudf package flag "manually-installed" and adjust the solver criteria to something in the lines of |
@rjbou add a test |
From a quick test:
|
Follows from ocaml#4969 and fixes ocaml#4727
Follows from ocaml#4969 and fixes ocaml#4727
Follows from ocaml#4969 and fixes ocaml#4727
Follows from ocaml#4969 and fixes ocaml#4727
Follows from ocaml#4969 and fixes ocaml#4727
If you have a switch with
dune
&ocaml < 4.08
, you automatically haveocamlfind-secondary
installed, but if you upgrade yourocaml
, you can't removeocamlfind-secondary
without removingdune
.dune.2.8.5
have:Calculation of reverse dependencies for automatic removal is too wide, it includes packages from rev deps disjunctions.
The text was updated successfully, but these errors were encountered: