Closed wokalski closed 6 years ago
Thank you for the report. It is reproduced on my machine. I suspect it is caused by camomile_yuge, which is empty.
@rgrinberg I'm not sure the intention of this library. What is this?
The intention is as follows: we'd like to use module aliases (for reasons I described elsewhere), but jbuilder only allows one top level alias module per library. This is a sensible restriction, but it complicates our lives with making Camomile backwards compatible. Since Camomile does indeed export multiple toplevel module names. The workaround is to move each toplevel module into its own library (remembering that only 1 toplevel module is allowed per lib with (wrapped true)
), and then compose them again with a dummy lib like I did (camomile_yuge
in this case).
The empty module I think I should have caught - sorry about that. The issue is the annoying behavior of ar not to accept empty archives. Later versions of OCaml do workaround this. The solution for us is to simply add an empty dummy module to camomile_yuge
. I will make a PR shortly.
New release 1.0.1 should fix this problem https://github.com/yoriyuki/Camomile/releases/tag/1.0.1. New opam package is submitted.
an opam package is merged
Output from
opam install camomile
: