File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
test/blackbox-tests/test-cases/odoc Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 11Unreleased
22----------
33
4+ - Do not list private libraries in package listings (#4945 , fixes #4799 ,
5+ @rgrinberg )
6+
47- Allow spaces in the directory argument of the ` subdir ` stanza (#4943 , fixes
58 #4907 , @rgrinberg )
69
Original file line number Diff line number Diff line change @@ -603,7 +603,12 @@ let entry_modules_by_lib sctx lib =
603603 >> | Modules. entry_modules
604604
605605let entry_modules sctx ~pkg =
606- let l = libs_of_pkg sctx ~pkg in
606+ let l =
607+ libs_of_pkg sctx ~pkg
608+ |> List. filter ~f: (fun lib ->
609+ Lib.Local. info lib |> Lib_info. status |> Lib_info.Status. is_private
610+ |> not )
611+ in
607612 let + l =
608613 Memo.Build. parallel_map l ~f: (fun l ->
609614 let + m = entry_modules_by_lib sctx l in
Original file line number Diff line number Diff line change @@ -15,6 +15,3 @@ Private libraries attached to packages shouldn't be displayed in the index
1515 $ dune build @ doc
1616 $ cat _build/ default / _doc/ _mlds/ foo/ index . mld
1717 {0 foo index }
18- {1 Library foo}
19- The entry point of this library is the module:
20- {! module-Foo}.
You can’t perform that action at this time.
0 commit comments