mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-12-18 10:21:39 +03:00
--find-pkg load dependencies
This commit is contained in:
parent
45d02a11b7
commit
07744b5f69
@ -486,6 +486,7 @@ findIpkg fname
|
||||
pkg <- addFields fs (initPkgDesc pname)
|
||||
setSourceDir (sourcedir pkg)
|
||||
processOptions (options pkg)
|
||||
loadDependencies (depends pkg)
|
||||
case fname of
|
||||
Nothing => pure Nothing
|
||||
Just src =>
|
||||
@ -499,3 +500,5 @@ findIpkg fname
|
||||
dropHead str [] = []
|
||||
dropHead str (x :: xs)
|
||||
= if x == str then xs else x :: xs
|
||||
loadDependencies : List String -> Core ()
|
||||
loadDependencies = traverse_ addPkgDir
|
||||
|
Loading…
Reference in New Issue
Block a user