leanprover / leanprover/lean4

Add a way to stop `lake build` on first failure

Open
#2,763 8 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement Lake P-low
Dominant language
Lean
Stars
9.2k
Forks
990
Avg merge
1d 17h
Merged PRs (30d)
175

Description

Perhaps related to leanprover/lean4#2764, it also might be helpful if there was a -x / --fail-fast option for lake build which stopped immediately on the first error (or first file with error).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names the lake build command and proposes -x/--fail-fast; begin by tracing that command's argument handling and failure behavior. Try a multi-file build with more than one error, and consider the work done when the first failure stops subsequent build work.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.