mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
language: fix: accidentally removed project database (#598)
This adds the local project database back to the checked package database. It was accidentally removed in an earlier commit.
This commit is contained in:
parent
f39b7a5d3f
commit
d4b87897be
@ -104,7 +104,7 @@ mkOptions opts@Options {..} = do
|
||||
baseDir <- getBaseDir
|
||||
mapM_ checkDirExists $ optImportPath <> optPackageDbs
|
||||
let defaultPkgDb = baseDir </> "package-database"
|
||||
pkgDbs <- filterM Dir.doesDirectoryExist [defaultPkgDb]
|
||||
pkgDbs <- filterM Dir.doesDirectoryExist [defaultPkgDb, projectPackageDatabase]
|
||||
pure opts {optPackageDbs = map (</> versionSuffix) $ pkgDbs ++ optPackageDbs}
|
||||
where checkDirExists f =
|
||||
Dir.doesDirectoryExist f >>= \ok ->
|
||||
|
Loading…
Reference in New Issue
Block a user