-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Allow package authors to refine constraints for Melange use case #5860
Comments
I was talking with @anmonteiro about this, and it seems we can achieve a similar result using The package author (like
Then, update the constraints using
I suspect that for more complex packages, the |
In the medium/long term we are hoping to be able to integrate a more general package variable concept. In the meantime I think |
we had a quick chat about it at the dev meeting yesterday and we were wondering why the use of |
You are right. You mean that just by adding
I think that point made above would still stand though? Afaiu, using |
It's not possible at the moment for package authors to support Melange optionally, without updating their package opam constraints to match what the
melange
package requires.A clear example of this issue can be seen in anuragsoni/routes#151, where the addition of Melange involved raising the lower boundary of
ocaml
to 4.14, a constraint that the author was not willing to impose on the package users (understandably).My suggestion is the addition of a new variable
with-melange
, that users can optionally use runningopam install
. This would allow package authors more flexibility to define constraints to accommodate both use cases:For example, in the
routes
example above, one could define a constraint like:I think a new variable would solve the issue, but maybe there are other alternatives that are less intrusive? Thank you!
The text was updated successfully, but these errors were encountered: