-
Notifications
You must be signed in to change notification settings - Fork 347
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
Unable to pin or lock opam file with {= version} #4832
Comments
The first one says the version number is To fix this you need to change your |
That said this a common mistake and we could have a warning to help users figure this out |
Indeed; maybe the warning should probably be in dune though ? in this case the mistake in opam syntax is much more obvious |
A dedicated lint warning is probably the way to show this |
Hi,
Consider the following as part of an opam file (https://github.com/lemaetech/wtr/blob/main/wtr-ppx.opam):
When I issue the command
opam pin .
, I get the following error,Due to this
opam lock ./wtr-ppx.opam
also fails with the following error:It seems we can't pin or lock packages where the dependency constraint contains
{= version}
. I am using opam 2.1The text was updated successfully, but these errors were encountered: