Having some trouble targeting `protobuf_source` fo...
# general
f
Having some trouble targeting
protobuf_source
for scala when having both java and scala backends enabled:
Copy code
pants.jvm.compile.ClasspathSourceAmbiguity: More than one JVM classpath provider (CompileJavaSourceRequest, CompileScalaSourceRequest) was compatible with the inputs:
  * .../.../protobuf:protobuf	(protobuf_source)
@fast-nail-55400 I think you looked at something similar before?
Had both codegen-backends enabled, removing one fixed it
f
(Multiple Python resolves conflicting for protobuf sources.)
Although in this case, the issue would be from there not being a way for the JVM logic to partition based on Java versus Scala.
Benjy's buid graph partitioning idea in https://github.com/pantsbuild/pants/pull/21918#issuecomment-2638855570 is relevant.
👍 1
f
Ah thanks, yeah that looks interesting
f
I also wrote a proof of concept of just resolve-based partitioning at https://github.com/pantsbuild/pants/pull/21918, but it may need to be generalized as per Benjy's idea.
👍 1