Skip to content

Commit

Permalink
Clenaup ScalaPB, no need to persist private scalaDepsPBIncludePath (#…
Browse files Browse the repository at this point in the history
…4424)

Co-authored-by: Li Haoyi <haoyi.sg@gmail.com>
  • Loading branch information
lefou and lihaoyi authored Jan 28, 2025
1 parent bcb6724 commit 1c92d8f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ trait ScalaPBModule extends ScalaModule {

def scalaPBIncludePath: T[Seq[PathRef]] = Task.Sources { Seq.empty[PathRef] }

private def scalaDepsPBIncludePath = if (scalaPBSearchDeps) Task { Seq(scalaPBUnpackProto()) }
else Task { Seq.empty[PathRef] }
private def scalaDepsPBIncludePath: Task[Seq[PathRef]] = scalaPBSearchDeps match {
case true => Task.Anon { Seq(scalaPBUnpackProto()) }
case false => Task.Anon { Seq.empty[PathRef] }
}

def scalaPBProtoClasspath: T[Agg[PathRef]] = Task {
defaultResolver().resolveDeps(
Expand Down

0 comments on commit 1c92d8f

Please sign in to comment.