Skip to content
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

[opam 2.1~alpha] opam remove -a (without arguments) does not work #4250

Closed
kit-ty-kate opened this issue Jun 29, 2020 · 2 comments · Fixed by #4369
Closed

[opam 2.1~alpha] opam remove -a (without arguments) does not work #4250

kit-ty-kate opened this issue Jun 29, 2020 · 2 comments · Fixed by #4369
Assignees
Projects
Milestone

Comments

@kit-ty-kate
Copy link
Member

With opam 2.0, using opam remove -a was a useful command which removes any packages that hasn't been purposefully installed by the user.

However with opam 2.1 (master) currently, the following error is given:

$ opam remove -a
The following dependencies couldn't be met:
  - ocaml-variants -> ocaml = 4.11.0 -> ocaml-config
Your request can't be satisfied:
  - Conflicting query for package ocaml-config.1

No solution found, exiting
@kit-ty-kate kit-ty-kate changed the title opam remove -a (without arguments) does not work with opam 2.1~alpha1 [opam 2.1~alpha] opam remove -a (without arguments) does not work Jun 29, 2020
@rjbou rjbou added this to To do in Opam 2.1.x via automation Jun 29, 2020
@rjbou rjbou added this to the 2.1.0~alpha2 milestone Jun 29, 2020
@rjbou rjbou modified the milestones: 2.1.0~alpha2, 2.1.0~beta Jul 17, 2020
@rjbou rjbou modified the milestones: 2.1.0~beta, 2.1.0 Aug 26, 2020
@AltGr AltGr added the KIND: BUG label Sep 2, 2020
@AltGr
Copy link
Member

AltGr commented Sep 2, 2020

From your message, it seems that the dependencies of the base packages are not properly added to the switch roots before the cleanup; obviously trying to remove them then results in a failure.
Thanks for reporting!

@rjbou rjbou modified the milestones: 2.1.0, 2.1.0~beta3 Sep 17, 2020
@rjbou rjbou moved this from To do to In Progress in Opam 2.1.x Oct 9, 2020
@AltGr
Copy link
Member

AltGr commented Oct 14, 2020

I have a fix for this, but it's stacked on top of other pending PRs.
So you just have to wait to a little more, but it's fixed.

@rjbou rjbou linked a pull request Oct 16, 2020 that will close this issue
Opam 2.1.x automation moved this from In Progress to Done Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Opam 2.1.x
  
Done
Development

Successfully merging a pull request may close this issue.

3 participants