-
Notifications
You must be signed in to change notification settings - Fork 456
Report that the opam version is 2.2.0 while solving #12721
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
Conversation
|
It seems wrong that we are allowing the solver to use this value at all. I'm not familiar with how this is meant to work. Don't we already check the opam version of a package when translating the build instructions, maybe we allow the solver to do its thing, ignoring the opam version, and then validate the version at a later step. |
|
Which packages are doing that? To me it seems fairly odd that packages declare (This is not to say that depending on |
a32508b to
e069377
Compare
|
I ran into this issue with io-page-unix while working on moby/vpnkit#653. |
e069377 to
b3a38ad
Compare
|
I think this condition does not make sense in the context of Dune. Dune doesn't really have an " If we change the solver to the pubgrub-solver as we've been contemplating then there's no opam code left, what would our If we need it to preserve compatibility with that condition, we could set it to a really large integer or change the comparison function on this variable to always evaluate to |
|
Agreed that this variable isn't super meaningful to dune. Either of your proposals sound reasonable to me as a long term solution. For the moment I'll still merge this since it solves the immediate problem with vpnkit. |
Certain packages require that the opam version be 2.2.0 or above, and the solver will refuse to include those packages with the current opam version baked into dune, which is 2.2.0~alpha-vendored. Signed-off-by: Stephen Sherratt <[email protected]>
b3a38ad to
e65a26d
Compare
That doesn't always work either. Users can write upper bounds or negate the check. I think what gridbugs is doing is the right thing. Pick some adhoc value that works with as many packages as possible. |
Certain packages require that the opam version be 2.2.0 or above, and the solver will refuse to include those packages with the current opam version baked into dune, which is 2.2.0~alpha-vendored.