Commit a35fea8
committed
fix: recognise quoted bare names in lakefile.lean require blocks
`leanRequirePrefixes` only generated the unquoted pattern `require foo`
for bare dependency names, so lakefiles using the valid quoted form
`require "foo" from git ...` were rejected with "does not contain a
require block named 'foo'".
Add the quoted variant `require "foo"` as a second candidate prefix.
Add a test fixture and three test cases covering readLeanGitUrl,
readLeanPinnedRev, and rewriteLeanContents for quoted bare names.1 parent 206943a commit a35fea8
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
229 | | - | |
| 228 | + | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
0 commit comments