Skip to content

● fix: force bibPrepass rebuild when references.bib is missing#356

Open
arajasek wants to merge 1 commit intoleanprover:mainfrom
arajasek:asr/rebuild-if-missing
Open

● fix: force bibPrepass rebuild when references.bib is missing#356
arajasek wants to merge 1 commit intoleanprover:mainfrom
arajasek:asr/rebuild-if-missing

Conversation

@arajasek
Copy link

@arajasek arajasek commented Feb 6, 2026

bibPrepass writes doc/references.bib as a side effect, but only doc-data/references.json is tracked by buildFileUnlessUpToDate'. When the tracked output is restored from cache without the side effect, Lake skips bibPrepass and the docs build fails

  bibPrepass writes doc/references.bib as a side effect, but only
  doc-data/references.json is tracked by buildFileUnlessUpToDate'.
  When the tracked output is restored from cache without the side
  effect, Lake skips bibPrepass and the docs build fails
@hargoniX
Copy link
Collaborator

hargoniX commented Feb 7, 2026

This seems like quite a hack to me, if anything we should improve the tracking of dependencies and not trick lake into doing our bidding by deleting artifacts.

@arajasek
Copy link
Author

arajasek commented Feb 7, 2026

Yeah, this one is optional -- the real fix was leanprover-community/docgen-action#22. I just wanted to make it more robust, because it seems like we keep hitting edge-cases that prevent this from working.

Feel free to close this as a wontmerge, though.

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