ocaml / dune

A composable build system for OCaml.
https://dune.build/
MIT License
1.63k stars 404 forks source link

Promote (public_name <package>.<subpackage>) as an alternative to creating a new <package>.opam file #8550

Open kit-ty-kate opened 1 year ago

kit-ty-kate commented 1 year ago

opam-repository regularly receives PRs where a number of packages have the exact name dependencies (modulo dependencies between them) and I feel like in most cases adding more packages to the opam namespace is not required (e.g. the tezos- and octez- packages).

Currently, dune's error messages only invite people to create <package>.opam files and never mention the possibility of subpackages anywhere. For example:

I feel like mentioning subpackages first in those error messages would be really helpful for users (less generated opam files with duplicated informations and packages to deal with when publishing) and opam-repository maintainers (less packages to maintain and review and CI would be less broken all the time)

rgrinberg commented 1 year ago

That sounds reasonable.