Resolve scala version per namespace in bazel mbt importer - #8612
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
2445c7a to
938a46a
Compare
|
I have work in progress PR with similar changes. I think we can get accurate Scala versions for each source if we replace Bazel query xml output with streamed_jsonproto or streamed_proto. |
tgodzik
left a comment
There was a problem hiding this comment.
I think the change looks good, we need to rebase.
The main question is whether using the alternate PR with streamproto might be better?
|
Yes, I missed that one previously, unfortunately. I don't really like the way we reach rules_scala_config here, so the streamproto one is probably better. I'll test it on the repo I'm working on and report here. |
|
This one is a much smaller PR, so might be worth merging unless you are able to help minimize the changes to the other PR? |
938a46a to
9971a0a
Compare
Also handle more cases via fallbacks
9971a0a to
1ec7c5f
Compare
Previously a single scala version was picked for all namespaces:
Now, we try to get the version for each namespace, without any additional query calls (mostly because I couldn't find one that would work consistently, even with cquery):
scala_versionentries