-
Notifications
You must be signed in to change notification settings - Fork 348
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
opam2 selects out-of-date packages more than opam1 #2809
Comments
due to ocaml/opam#2809 on opam2
Hi @avsm, it seems it is more a bug related to the docker image. I noticed the bug recently (when fighting with ocaml/opam-repository#8048) and shamefully postponed the report ! Sorry about that. Here it is. If you run When opam is not able to detect that In the image with opam1, you use a binary aspcud, which opam detects correctly as version 1.9. In the image with opam2, you use a "remote" aspcud through a shell script that does not handle Maybe aspcud-1.9 is old enough for us to change the defaut criteria in opam2 (while using the simpler when it detects aspcud < 1.9 ?) |
Another fix would be to set |
Ah! Thanks @OCamlPro-Henry for spotting this!
Note that |
This lets OPAM detect that its ok to use Aspcud 1.9 Debugging vi @OCamlPro-Henry in ocaml/opam#2809
Many thanks for the expert detective work @OCamlPro-Henry! There were a couple of bugs here that are now fixed:
So once all the rebuilds are done, we should have Aspcud 1.9 criteria available consistently on both OPAM 1.2 and OPAM 2.0 Dockerfile containers. Please let me know if you see any more issues with this, and I'll close this for now. |
Discussed with @AltGr and is due to a very different package universe in opam2, but the problem is quite badly manifesting from a user perspective.
Two Dockerfiles that are reproducible for a mirage installation:
opam2:
with opam1:
The two dockerfiles are:
opam2:
and for opam1
The text was updated successfully, but these errors were encountered: