Commit ba9bf0f
fix(lint-style): filter out duplicate
`Lean.parseImports'` now emits `Init` more than once for module-system
files such as `Mathlib.lean`, but `findImportsFromSource` (in importGraph)
only `.erase`s the first occurrence. The remaining `Init` was treated as a
module to lint, producing `uncaught exception: no such file or directory ...
file: Init.lean` and breaking the `lint-style` CI job on `nightly-testing`.
Defensively filter out any remaining `Init` after `findImportsFromSource`.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>Init from Mathlib.lean imports1 parent aaa0ccc commit ba9bf0f
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
109 | 113 | | |
110 | 114 | | |
111 | 115 | | |
| |||
0 commit comments