Skip to content

fix: don't skip docs in multi-library situations#363

Merged
hargoniX merged 4 commits intoleanprover:mainfrom
david-christiansen:db-fix
Feb 24, 2026
Merged

fix: don't skip docs in multi-library situations#363
hargoniX merged 4 commits intoleanprover:mainfrom
david-christiansen:db-fix

Conversation

@david-christiansen
Copy link
Contributor

@david-christiansen david-christiansen commented Feb 24, 2026

Fixes a race condition in #347 that caused multi-library builds to skip generating HTML for some libraries.

The issue was that the Lake setup used declaration-data.bmp as its build target. Multiple-library builds would populate the database, but then only the one that won the race would generate its declaration-data.bmp. The others would incorrectly see that it existed and generate no HTML.

Now, the same "marker file" approach is used as the database content to indicate that HTML for a given module, library, or package is up to date. This gives them the right traces, and allows declaration-data.bmp to be updated as needed.

A regression test is also included.

Fixes a bug in leanprover#347 that caused multi-library builds to skip
generating HTML for some libraries.

The issue was that the Lake setup used declaration-data.bmp as its
build target. Multiple-library builds would populate the database, but
then only the one that won the race would generate its
declaration-data.bmp. The others would incorrectly see that it existed
and generate no HTML.

Now, the same "marker file" approach is used as the database content
to indicate that HTML for a given module, library, or package is up to
date. This gives them the right traces, and allows
declaration-data.bmp to be updated as needed.

A regression test is also included.
Rather than sending pragmas in strings, it's nicer to use a
higher-level API.
This reverts commit b95beb5. It will
be sent in a separate PR.
@hargoniX hargoniX merged commit d6f535e into leanprover:main Feb 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants