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

Return parse errors for 2.2/2.3 formats #6199

Merged
merged 3 commits into from
Sep 18, 2024
Merged

Conversation

dra27
Copy link
Member

@dra27 dra27 commented Sep 16, 2024

Fixes #6188 and addresses the note in #5665 (comment)

@dra27 dra27 requested a review from rjbou September 16, 2024 21:56
@dra27 dra27 added this to the 2.3.0~alpha1 milestone Sep 16, 2024
dra27 and others added 3 commits September 18, 2024 11:17
Co-authored-by: Raja Boujbel <raja.boujbel@ocamlpro.com>
opam-file-format has not required a change since opam 2.1, which causes
it to report parse errors when opam-version is > 2.1 using a signal.
opam was using the format version instead of the client version to
determine if these errors are actually parse errors, and was therefore
reporting an unsupported format instead of a parse error.

Co-authored-by: Raja Boujbel <raja.boujbel@ocamlpro.com>
Repository parsing and linting use a slightly different parsing route
which wasn't checking for future syntax errors.

Co-authored-by: Raja Boujbel <raja.boujbel@ocamlpro.com>
@kit-ty-kate kit-ty-kate merged commit 4dd2fe9 into ocaml:master Sep 18, 2024
29 checks passed
@kit-ty-kate
Copy link
Member

Thanks a lot!

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

Successfully merging this pull request may close these issues.

opam 2.2 misdiagnosing parse errors for opam-version: "2.2"
2 participants