-
Notifications
You must be signed in to change notification settings - Fork 523
Introduce runtime_toolchain_type #3859
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
Conversation
|
This requires follow up fixes in |
2bdbe1f
to
3a0c8a3
Compare
I really like where this is going. I will review this in detail soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why does this introduce a new zlib dependency? is that related to the toolchain type, or is it fixing some existing issue at HEAD?
I couldn't build the project successfully on my Mac without it (ran into bazelbuild/bazel#25124). Thus, the dependency is likely there but as a transitive. I agree that this might be too problematic. Any recommendations @alexeagle? |
According to discussions in bazel-contrib#3854 having two toolchains of the same type for different things is troublesome. It's better to have separate runtime as well as compile toolchains. This commit creates a new runtime_toolchain_type and registers toolchains without execution constraints for this type. Once merged, rules_ts can start consuming the new toolchain type in its js_binary rule to ensure the correct Node for the correct target environment is selected. Fixed [Bug]: Execution toolchain defined without `target_compatible_with` makes it a candidate to selection Fixes bazel-contrib#3854 Work towards bazel-contrib#3795
3a4fc5f
to
72f5f23
Compare
I'm going to remove zlib dep, if there's a problem it can be a separate PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, thanks!
According to discussions in #3854 having two toolchains of the same type for different things is troublesome. It's better to have separate runtime as well as compile toolchains.
This commit creates a new runtime_toolchain_type and registers toolchains without execution constraints for this type. Once merged, rules_ts can start consuming the new toolchain type in its js_binary rule to ensure the correct Node for the correct target environment is selected.
Fixed [Bug]: Execution toolchain defined without
target_compatible_with
makes it a candidate to selectionFixes #3854
Work towards #3795
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
It tries to remain compatible and support existing consumers.
Other information
This is an alternative to #3800.