···77 `TOPKG_CONF_DEBUGGER_SUPPORT=false` in your environment (#143).
8899- Fix install of hidden library modules when `Topkg.Conf.debugger_support` is
1010- `true`: The `.cmi` files were being installed instead of the `.cmti`
1111- and the `.mli` was missing (#143).
1010+ `true`. When the hidden module has an `.mli`, the `.cmi` files was being installed
1111+ instead of the `.cmti` and the `.mli` was missing (#143). When the hidden module
1212+ had no `.mli` the installation would fail by requiring one.
12131314v1.0.8 2025-03-10 La Forclaz (VS)
1415---------------------------------
+9-1
vendor/opam/topkg/src/topkg_install.ml
···212212 let exts, debugger_support_exts = match List.mem m api with
213213 | true -> Topkg_fexts.api, Topkg_fexts.exts [".ml"; ".cmt"]
214214 | false ->
215215- Topkg_fexts.cmx, Topkg_fexts.exts [".mli"; ".ml"; ".cmti"; ".cmt"]
215215+ let debugger_support_exts =
216216+ (* Hidden modules are not forced to have an mli this
217217+ information is not explicitely specified at the topkg
218218+ level so we look up the file system. *)
219219+ if Sys.file_exists (fpath ^ ".mli")
220220+ then [".mli"; ".ml"; ".cmti"; ".cmt"]
221221+ else [".ml"; ".cmt"]
222222+ in
223223+ Topkg_fexts.cmx, Topkg_fexts.exts debugger_support_exts
216224 in
217225 field ?dst ~exts fpath ::
218226 debugger_support_field ?dst ~exts:debugger_support_exts fpath ::