PB.targets is empty after upgrading to sbt-protoc 1.0.3

149 views
Skip to first unread message

Chris Toomey

unread,
Mar 7, 2022, 9:29:44 PM3/7/22
to ScalaPB
Hopefully this is a simple one. I tried to debug it but was unsuccessful.

After updating from

addSbtPlugin("com.thesamet" % "sbt-protoc" % "0.99.19")
libraryDependencies += "com.thesamet.scalapb" %% "compilerplugin" % "0.8.2"

to

addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.0.3")
libraryDependencies += "com.thesamet.scalapb" %% "compilerplugin" % "0.11.1"

it stopped compiling our test protobuf files and started logging

[info] Protobufs files found, but PB.targets is empty.

Our build.sbt hasn't changed:

      PB.deleteTargetDirectory := false,
      PB.protoSources in Test := Seq(file("./test/protobuf")),
      Test / PB.targets := Seq(
        scalapb.gen() -> (Test / sourceManaged).value / "scalapb"
      ),


Thanks for any pointers.

Chris

Reply all
Reply to author
Forward
0 new messages