-
Notifications
You must be signed in to change notification settings - Fork 371
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 upgrade --fixup
doesn't always upgrade as much as possible
#5934
Comments
plus it simulates what the developers see when the dependency change happens |
Does this also happen with 2.1.5 and 2.2~beta2 ? |
Haven’t used 2.2 enough at this point to answer this question, sorry. |
This works as intended 😬 . The issue is, I guess, that the In other words, the intended feature (disregarding the actual CLI) is to repair the switch by whatever means possible, with as little changes as possible. So I can see several possible paths from here:
I am fully aware, though, that in this form it doesn't really solve your original issue, unless you resort to an ugly |
is it something that I could already achieve with |
I haven't tried (and it would be hard to test), but if that works as @AltGr hinted you can try:
where the criteria used is the default criteria for upgrades with mccs (the default solver). |
I have an easy reproduction on my side actually. And it seems to work. Thanks! |
In that case maybe we could change this to be the default for |
I'm not too sure how to word this issue. And details of the setup are old so I lost some context. But basically we have a CI which is stateful. We don't wipe the switch in between builds as it's very costly to start from scratch. So instead we run
opam update && opam upgrade
when necessary. More exactly we haveOriginally we only had
opam upgrade
. But once in a while there's some kind of conflict between what is currently installed and what is required either byahrefs-all-deps
or by an upgrade. So we have to introduce theopam upgrade --fixup
call. And unfortunately thisupgrade --fixup
is not enough on its own. We found out that it indeed fixes the state of the switch. But that it doesn't upgrade all packages as much as the subsequentopam upgrade
call will.It wouldn't really matter if
opam upgrade
was faster. But now it means losing about 15s to everyopam upgrade
call.Opam 2.1.2
The text was updated successfully, but these errors were encountered: