Commit 2026-12-01 17:12 69ca2613
View on Github →feat: revamp mk_all internals (#45108)
This PR revamps mk_all to
- correctly find the source directory and paths from the (already available)
lean_libs and rely on more robust Lake API more broadly - use a
Configinternally that accounts for the mathlib-specific exceptions, so that in the future downstream projects could read this from json instead - checks that we are not overwriting a file that includes more than just imports, and demands
--clobberto do so - (misc.) allow multiple libraries/roots to be specified with
--lib Foo,Bar,BazThis also generally refactors the code somewhat to make it more principled and (hopefully) maintainable. We also change the behavior of API inMathlib.Util.GetAllModulesas appropriate in order to rely on more robust paths.