Skip to content

feat: lake: empty build detection & --allow-empty#13500

Merged
tydeu merged 4 commits into
leanprover:masterfrom
tydeu:lake/empty-build
Apr 23, 2026
Merged

feat: lake: empty build detection & --allow-empty#13500
tydeu merged 4 commits into
leanprover:masterfrom
tydeu:lake/empty-build

Conversation

@tydeu
Copy link
Copy Markdown
Member

@tydeu tydeu commented Apr 22, 2026

This PR adds a check for empty lake build invocations (as an empty build usually indicates a misconfiguration). Builds with no jobs will now print "Nothing to build." and invocations of lake build with no default targets configured will produce a warning. This will be promoted to an error in the future. The warning (and future error) can be suppressed with the new --allow-empty CLI option.

tydeu and others added 3 commits April 21, 2026 21:26
@tydeu tydeu added changelog-lake Lake lake-ci Run all Lake tests labels Apr 22, 2026
@tydeu tydeu marked this pull request as ready for review April 22, 2026 03:00
@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Apr 22, 2026
@leanprover-bot
Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI can not be attempted yet, as the nightly-testing-2026-04-19 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-manual, reference manual CI should run now. You can force reference manual CI using the force-manual-ci label. (2026-04-22 03:35:33)

@github-actions github-actions Bot added the mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN label Apr 22, 2026
@mathlib-lean-pr-testing mathlib-lean-pr-testing Bot added the builds-mathlib CI has verified that Mathlib builds against this PR label Apr 22, 2026
@mathlib-lean-pr-testing
Copy link
Copy Markdown

Mathlib CI status (docs):

@tydeu tydeu added this pull request to the merge queue Apr 23, 2026
Merged via the queue into leanprover:master with commit 30a3fde Apr 23, 2026
29 checks passed
@tydeu tydeu deleted the lake/empty-build branch April 23, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

builds-mathlib CI has verified that Mathlib builds against this PR changelog-lake Lake lake-ci Run all Lake tests mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants