-
Notifications
You must be signed in to change notification settings - Fork 371
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
Enforce opam-version
as first non-comment line for > 2.0
#4394
Comments
Note that
|
Yes it would - it’s writing |
Oh sorry I missed the part with |
This is addressed in ocaml/opam-file-format#43 and would be picked up by opam when the src_ext is updated. Before you get errors like:
now you get more informative errors like:
|
The error message for
but it does clearly point to the line with the error, which is at least no worse than any other parsing error. |
At present,
opam-version
is used to control the fields available in anopam
file but it can't control the lexer. In particular, this will be limiting for adding additional operators to the constraint language.opam-version: "2.1"
or greater whereopam-version
is not the first line, ignoring lines consisting of just whitespace/comments.opam-version
is encountered (so what a 2.0 lexer would regard as syntax errors are not reported)The text was updated successfully, but these errors were encountered: