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 file generation could be made less error-prone #11002

Open
samoht opened this issue Oct 8, 2024 · 0 comments
Open

opam file generation could be made less error-prone #11002

samoht opened this issue Oct 8, 2024 · 0 comments

Comments

@samoht
Copy link
Member

samoht commented Oct 8, 2024

I would expect the generation of opam file from dune-project to be fool-proof, ie. warm when there are clear mistakes/typos. Right now, it doesn't.

For instance, if you write:

(depends
   (alcotest :with_test)
   ...

This will happily generates an opam file containing "alcotest" {with_test} which will make opam install . --deps -t very confused (basically it'll just ignore that variable). I would have expected the conversion to either warn that this variable seems suspiciously close to with-test or just fail, as this variable isn't defined anywhere.

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

2 participants