-
Notifications
You must be signed in to change notification settings - Fork 368
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.0~beta4] Migration from 2.0 removes all constraints in the invariant #4501
Comments
Somewhat related to #4333 |
The code is here: opam/src/state/opamSwitchState.ml Lines 136 to 141 in beb696e
So basically this should only happen if opam/src/state/opamSwitchState.ml Lines 886 to 892 in beb696e
(this is now handled in a much better way at the Cudf level) |
(Discussed at the dev meeting on 26 Feb) docker-base-images constructs an opam 2.0 root and builds a switch with ocaml-base-compiler. It then pins the package. An opam 2.1 binary is included in the Docker images and what happens here is that the repo upgrade sees the pin and so ignores the underlying base package version (by design). It would be possible, but not trivial, for the repo upgrade to ignore the pin, but this would at least require resolving the switch and as it adds non-trivial complexity to an already non-trivial process, we decided that it's likely that docker-base-images is the only place this will be seen (and it will cease being visible when the image only contains an opam 2.1 binary). |
…rom 2.0 removes all constraints in the invariant if the compiler package is pinned)
Fixed in #5176 |
This is a problem. This should results in
["ocaml-base-compiler" {= "4.11.1"}]
instead.The text was updated successfully, but these errors were encountered: