Skip to content
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.2 misdiagnosing parse errors for opam-version: "2.2" #6188

Closed
dra27 opened this issue Sep 3, 2024 · 0 comments · Fixed by #6199
Closed

opam 2.2 misdiagnosing parse errors for opam-version: "2.2" #6188

dra27 opened this issue Sep 3, 2024 · 0 comments · Fixed by #6199
Assignees
Milestone

Comments

@dra27
Copy link
Member

dra27 commented Sep 3, 2024

Slightly academic, as there were no changes for 2.2, but this affects #5665.

For

opam-version: "2.1"
GARBAGE

opam lint gives a parse error, which is correct.

For

opam-version: "2.2"
GARBAGE

it gives "unsupported or missing file format version; should be 2.0 or older", which is incorrect (it should still be a path error). The issue is failing to handling opam-file-format 2.1.x signalling a parse error for a future opam syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant