Open v-gb opened 1 month ago
Thanks for reporting the issue! This is an error we have because of the 0install
solver, which computes the dependencies. Currently, we can't tweak the output and provide a better error. However, we are exploring some alternatives to make it better, such as having an output produced by 0install we could parse from dune or having an alternative solver.
Expected Behavior
If the dune-project file mentions a package that doesn't exist in the
depends
field, I'd expect an error saying so when callingdune pkg lock
.Actual Behavior
Instead, dune prints screenfuls of confusing information that mention various problems, almost all of which is irrelevant to the problem (but seems like it could be relevant).
Reproduction
Given a dune-project with:
I get this error when running
dune pkg lock
:The real problem here is
but that's just one of many
problem
listed above. Ifunix
is removed from thedepends
list, the command succeeds (because unix is in fact not a package, it's just a library in the ocaml package or something. Also if dune generated the depends list from the dune files, this confusion wouldn't need to exist in the first place).