Open reid-spencer opened 1 year ago
FYI, I'm running sbt 1.9.4
After working on this more, I discovered that in build.sbt
whenyou want to pull in proto files from another module, if you use, e.g.
dependsOn(common % "protobuf-src")
instead of
.dependsOn(common % "protobuf")
Then you'll get the problem. without the "-src" suffix, the problem goes away (but other things come up!)
the correct way
Hey @reid-spencer , sorry for getting so late to this. Can you put together the minimal steps necessary to reproduce this problem?
It occurs to me that scalapb-validate-core_2.13-0.3.4 references something that it doesn't unpack: validate-options.proto
As you can see in the error message below, the manifest references:
/Users/reid/Code/Ossum/amenities/property/target/protobuf_external_src/scalapb/validate-options.proto
but this is actually unpacked to/Users/reid/Code/Ossum/amenities/property/target/protobuf_external/scalapb/validate-options.proto
The difference being the
target/protobuf_external_src
path in the manifest, and the actual file location is justtarget/protobuf_external
I've been scratching my head for a few days trying to figure out how to overcome this using sbt, but my sbt foo isn't quite that good. Help, please? And, if I'm doing something wrong, I'd appreciate being corrected. Thanks!