-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ScalaPB deps toolchain #1104
ScalaPB deps toolchain #1104
Conversation
is this a breaking change? |
If I'm not missing anything, it should not be breaking (it refactors private attributes) |
Build is broken |
@ianoc-stripe do you remember why this test is needed? Toolchains automatically include host paltform as an execution platform. Is it a problem? |
Moving this PR to draft, due to: |
I can live with that if I understand the exact value gain and reason. |
Limitation is that with a current state of toolchains, all deps are added as host: #797. It's address with an ongoing work on execution transitions (https://groups.google.com/g/bazel-discuss/c/vXrG6uFL5V8/m/RjK8_chaEgAJ). |
@liucijus having them in the bind keeps it off the host deps. But the issues around having deps in the toolchain or not is unconnected with #751 as far as i know. You can add/change the deps via the bind (indeed we bind these against local java_libraries iirc to setup the deps we use locally). It would be nice to move the deps on the toolchain since it seems like thats how it should be done, but afaik it won't solve any of our other issues today |
`//scala_proto:deps_toolchain_type` is required to uncycle dependency between `//scala_proto:toolchain_type` and generators which depend on the same proto libraries and need to be initialized before the toolchain creation.
1c25e09
to
5e51126
Compare
this PR is ready to be merged |
* Inject Scalapb deps via providers on the toolchain * Update scalapb toolchain deps docs * Lint * Use external names for default labels * Add proto toolchain only for deps `//scala_proto:deps_toolchain_type` is required to uncycle dependency between `//scala_proto:toolchain_type` and generators which depend on the same proto libraries and need to be initialized before the toolchain creation. * Update toolchain transitions * Use incompatible_use_toolchain_transition
Refactors scalapb toolchain to use DepsInfo providers to pass required dependencies. Part of #940