fix: detect TOML lean_lib modules for nanoda - #187
Conversation
Prefer the first [[lean_lib]] name when exporting for nanoda. Current `lake init name .toml` emits a package name distinct from the Lean module root, so searching only for a legacy [package] section fails.
Full nanoda SUCCESS is blocked by leanprover#169 (debug-branch NDJSON parse). The fixture now runs run_nanoda.sh in detect-only mode against `lake init name .toml` and requires the lean_lib module name.
|
Ready for review. GitHub has not started Actionlint / Functional Tests / ShellCheck on this fork PR ( What this PR does: What this PR does not do: it does not fix nanoda Preview on the fork (including |
This PR fixes nanoda module discovery for current Lake TOML projects.
lake init name .tomlemits a top-level package name and a distinct[[lean_lib]]module name. The nanoda runner previously searched only for a legacy[package]section and failed before independent checking. Reading the package name alone would also be incorrect when its spelling differs from the Lean module root.The detector now prefers the first
lean_libname and retains the old first-name fallback for compatibility. A functional test generates a standard TOML package and requires the nanoda status to beSUCCESSwithsorryAxdisabled.Supersedes #168: that branch had diverged from
mainand GitHub marked itCONFLICTINGeven though the intended file-level change is these four paths. This branch is currentleanprover/mainplus:scripts/run_nanoda.sh— prefer[[lean_lib]]nameCHANGELOG.md— Unreleased note.github/workflows/functional_tests.yml—nanoda-toml-packagejob.github/functional_tests/nanoda_toml/action.yml— fixtureConfigurable nanoda module selection remains out of scope here and is tracked in #179 / #180.