Skip to content

Commit 56a79b8

Browse files
kim-emclaude
andcommitted
fix: remove stale nanoda-on-main-only docs, improve module detection
- Remove references to nanoda-on-main-only input from README (was removed in 8865ac2) - Allow leading whitespace when detecting package name in lakefile.lean Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4ff2a50 commit 56a79b8

2 files changed

Lines changed: 2 additions & 17 deletions

File tree

README.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,6 @@ To be certain `lean-action` runs a step, specify the desire feature with a featu
216216
# Default: "true"
217217
nanoda-allow-sorry: ""
218218

219-
# Only run nanoda on push events to the default branch, not on pull requests.
220-
# Useful for reducing CI time on PRs since nanoda verification is slow.
221-
# Allowed values: "true" | "false".
222-
# Default: "true"
223-
nanoda-on-main-only: ""
224-
225219
# Enable GitHub caching.
226220
# Allowed values: "true" or "false".
227221
# If use-github-cache input is not provided, the action will use GitHub caching by default.
@@ -333,15 +327,6 @@ steps:
333327
nanoda: true
334328
```
335329
336-
By default, nanoda only runs on push events to the main branch (not on PRs) because verification adds significant CI time. To run on all events:
337-
338-
```yaml
339-
- uses: leanprover/lean-action@v1
340-
with:
341-
nanoda: true
342-
nanoda-on-main-only: false
343-
```
344-
345330
### Require no sorry placeholders
346331
347332
By default, nanoda permits the `sorryAx` axiom for projects with incomplete proofs. To require all proofs be complete:

scripts/run_nanoda.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ fi
6969

7070
# Fallback to lakefile.lean
7171
if [ -z "$MODULE_NAME" ] && [ -f "lakefile.lean" ]; then
72-
# Try to extract from 'package' declaration
73-
MODULE_NAME=$(grep -E "^package\s+" lakefile.lean | head -1 | awk '{print $2}' || true)
72+
# Try to extract from 'package' declaration (allowing leading whitespace)
73+
MODULE_NAME=$(grep -E "^\s*package\s+" lakefile.lean | head -1 | awk '{print $2}' || true)
7474
fi
7575

7676
if [ -z "$MODULE_NAME" ]; then

0 commit comments

Comments
 (0)