Skip to content

Commit

Permalink
add parentheses PathFinder.get
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Dec 11, 2024
1 parent ae211c6 commit 3e2a27f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/scala/sbtprotoc/ProtocPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ object ProtocPlugin extends AutoPlugin {

targets.flatMap {
case Target(DescriptorSetGenerator(), outputFile, _) => Seq(outputFile)
case Target(_, outputDirectory, _) => outputDirectory.allPaths.get
case Target(_, outputDirectory, _) => outputDirectory.allPaths.get()
}.toSet
} else if (schemas.nonEmpty && targets.isEmpty) {
log.info("Protobufs files found, but PB.targets is empty.")
Expand Down Expand Up @@ -552,7 +552,8 @@ object ProtocPlugin extends AutoPlugin {
sources
.toSet[File]
.flatMap(srcDir =>
(srcDir ** (toInclude -- toExclude)).get
(srcDir ** (toInclude -- toExclude))
.get()
.map(_.getAbsoluteFile)
) match {
case protos if protos.nonEmpty =>
Expand Down Expand Up @@ -622,7 +623,7 @@ object ProtocPlugin extends AutoPlugin {
{ (_, prevValue) =>
def stampClasspath(files: Seq[File]) =
// artifact paths can be JARs or directories, so a recursive stamp is needed
FileInfo.lastModified(files.toSet[File].allPaths.get.toSet)
FileInfo.lastModified(files.toSet[File].allPaths.get().toSet)

if (prevValue == null) {
// first time this classpath is requested since the start of sbt
Expand Down Expand Up @@ -711,7 +712,7 @@ object ProtocPlugin extends AutoPlugin {
val sandboxedArtifactsStamps =
stampedClassLoadersByArtifact.values.map(_._1).toSeq
val inputStamp =
FileInfo.lastModified(schemas ++ arguments.includePaths.allPaths.get)
FileInfo.lastModified(schemas ++ arguments.includePaths.allPaths.get())
cachedCompile((arguments, sandboxedArtifactsStamps :+ inputStamp)).toSeq
}
}
Expand Down

0 comments on commit 3e2a27f

Please sign in to comment.