Skip to content
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

Update AspectDefinition to use ToolchainTypeRequirement. #14823

Closed
wants to merge 1 commit into from

Conversation

katre
Copy link
Member

@katre katre commented Feb 15, 2022

Part of Optional Toolchains (#14726).

@katre katre requested a review from gregestren February 15, 2022 18:57
@katre katre requested a review from lberki as a code owner February 15, 2022 18:57
ToolchainTypeRequirement.builder()
.toolchainType(
Label.parseAbsoluteUnchecked(toolsRepository + sdkToolchainLabel))
.mandatory(true)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little unhappy with the verbosity here. Should I add a shorter version?

One thought:

.addToolchainType(ToolchainTypeRequirement.builder(typeLabel))

Thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. As currently written I had some trouble identifying when the builder resolves and how it generally fits with the pattern.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, added them as #14825, once that's in I'll rebase this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased.

@bazel-io bazel-io closed this in fb16270 Feb 16, 2022
@katre katre deleted the i14726-04-aspect branch February 16, 2022 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants