fix: source links for Lake

main
tydeu 2023-08-29 17:45:58 -04:00 committed by Henrik Böving
parent dc9549e2e6
commit 0b52010291
1 changed files with 2 additions and 0 deletions

View File

@ -86,6 +86,8 @@ def sourceLinker (ws : Lake.Workspace) : IO (Name → Option DeclarationRange
let root := module.getRoot
let basic := if root == `Lean root == `Init then
s!"https://github.com/leanprover/lean4/blob/{leanHash}/src/{path}.lean"
else if root == `Lake then
s!"https://github.com/leanprover/lean4/blob/{leanHash}/src/lake/{path}.lean"
else
match ws.packageArray.find? (·.isLocalModule module) with
| some pkg =>