Merge pull request #2836 from mattpolzin/library-data

[ new ] [ proposal ] Allow libraries to ship a data dir
This commit is contained in:
Zoe Stafford 2023-01-03 10:38:30 +00:00 committed by GitHub
commit ab0ff2754a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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