The unpac monorepo manager self-hosting as a monorepo using unpac
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Alleviate more serious package breakage by parent commit (#14).

+12 -3
+3 -2
vendor/opam/topkg/CHANGES.md
··· 7 7 `TOPKG_CONF_DEBUGGER_SUPPORT=false` in your environment (#143). 8 8 9 9 - Fix install of hidden library modules when `Topkg.Conf.debugger_support` is 10 - `true`: The `.cmi` files were being installed instead of the `.cmti` 11 - and the `.mli` was missing (#143). 10 + `true`. When the hidden module has an `.mli`, the `.cmi` files was being installed 11 + instead of the `.cmti` and the `.mli` was missing (#143). When the hidden module 12 + had no `.mli` the installation would fail by requiring one. 12 13 13 14 v1.0.8 2025-03-10 La Forclaz (VS) 14 15 ---------------------------------
+9 -1
vendor/opam/topkg/src/topkg_install.ml
··· 212 212 let exts, debugger_support_exts = match List.mem m api with 213 213 | true -> Topkg_fexts.api, Topkg_fexts.exts [".ml"; ".cmt"] 214 214 | false -> 215 - Topkg_fexts.cmx, Topkg_fexts.exts [".mli"; ".ml"; ".cmti"; ".cmt"] 215 + let debugger_support_exts = 216 + (* Hidden modules are not forced to have an mli this 217 + information is not explicitely specified at the topkg 218 + level so we look up the file system. *) 219 + if Sys.file_exists (fpath ^ ".mli") 220 + then [".mli"; ".ml"; ".cmti"; ".cmt"] 221 + else [".ml"; ".cmt"] 222 + in 223 + Topkg_fexts.cmx, Topkg_fexts.exts debugger_support_exts 216 224 in 217 225 field ?dst ~exts fpath :: 218 226 debugger_support_field ?dst ~exts:debugger_support_exts fpath ::