Skip to content

Commit

Permalink
fix that test
Browse files Browse the repository at this point in the history
  • Loading branch information
radeusgd committed Aug 28, 2023
1 parent be9df1d commit 66dac58
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,11 @@ class LocalLibraryManager(
private def findLocalLibraries(): Try[Seq[LibraryName]] = Try {
for {
searchPathRoot <- libraryLocations.localLibrarySearchPaths
namespaceDir <- FileSystem
projectDir <- FileSystem
.listDirectory(searchPathRoot)
.filter(Files.isDirectory(_))
nameDir <- FileSystem
.listDirectory(namespaceDir)
.filter(Files.isDirectory(_))
namespace = namespaceDir.getFileName.toString
name = nameDir.getFileName.toString
} yield LibraryName(namespace, name)
pkg <- PackageManager.Default.loadPackage(projectDir.toFile).toOption
} yield pkg.libraryName
}

/** Finds the path on the filesystem to a local library. */
Expand Down

0 comments on commit 66dac58

Please sign in to comment.