dune icon indicating copy to clipboard operation
dune copied to clipboard

Warn about duplicate dependencies in package definitions

Open rgrinberg opened this issue 6 years ago • 2 comments

Currently, an opam package maybe defined as:

(package
 (name foo)
 (depends ocaml ocaml))

And dune will let the above pass through. We should be a bit more diligent here and make sure duplicates are forbidden.

rgrinberg avatar Sep 28 '19 15:09 rgrinberg

That seems reasonable

ghost avatar Sep 30 '19 07:09 ghost

Hey @rgrinberg, I have raised a PR for this issue. Thanks

benodiwal avatar Dec 04 '25 16:12 benodiwal