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

Lint check for the presence of "<const string> = <const string>" in filters #5948

Open
kit-ty-kate opened this issue May 9, 2024 · 0 comments

Comments

@kit-ty-kate
Copy link
Member

Someone over on Discord got their opam file generated by dune with a wrong syntax:

depends: [
  "torch" {":" = "0.16.0"}
]

this is a perfectly valid filter syntax but it will never be true and thus always skipped silently (expected).

Maybe it would be worth checking this pattern and issuing a warning when it is encountered.

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

No branches or pull requests

1 participant