Commit 2026-12-01 17:12 69ca2613

View on Github →

feat: revamp mk_all internals (#45108) This PR revamps mk_all to

  1. correctly find the source directory and paths from the (already available) lean_libs and rely on more robust Lake API more broadly
  2. use a Config internally that accounts for the mathlib-specific exceptions, so that in the future downstream projects could read this from json instead
  3. checks that we are not overwriting a file that includes more than just imports, and demands --clobber to do so
  4. (misc.) allow multiple libraries/roots to be specified with --lib Foo,Bar,Baz This also generally refactors the code somewhat to make it more principled and (hopefully) maintainable. We also change the behavior of API in Mathlib.Util.GetAllModules as appropriate in order to rely on more robust paths.

Estimated changes