Allow libraries to ship a data dir at a standard location within their install directory.

This commit is contained in:
Mathew Polzin 2022-12-27 20:44:16 -06:00
parent 947432fa30
commit d53a277a34

View File

@ -358,6 +358,7 @@ addDeps pkg = do
| Failed errs => throw $ GenericMsg EmptyFC (printErrs pkg errs)
log "package.depends" 10 $ "all depends: \{show allPkgs}"
traverse_ addPackageDir allPkgs
traverse_ addDataDir ((</> "data") <$> allPkgs)
where
-- Note: findPkgDir throws an error if a package is not found
-- *unless* --ignore-missing-ipkg is enabled