Skip to content

feat: Add DefaultInfoSubject #62

Merged
copybara-service[bot] merged 1 commit intobazelbuild:masterfrom
rickeylev:default.info.subject
Jul 11, 2023
Merged

feat: Add DefaultInfoSubject #62
copybara-service[bot] merged 1 commit intobazelbuild:masterfrom
rickeylev:default.info.subject

Conversation

@rickeylev
Copy link
Copy Markdown
Collaborator

This is a subject for the DefaultInfo provider. Normally accessing its
information is done through TargetSubject, however, if an object has a
direct reference to DefaultInfo instance, then there isn't a target
directly associated with it. Such a situation can occur when using
toolchain info forwarding rules (e.g. :current_foo_toolchain).

Fixes #52

@rickeylev rickeylev force-pushed the default.info.subject branch 2 times, most recently from 0236875 to cfb1dd4 Compare July 7, 2023 23:23
This is a subject for the `DefaultInfo` provider. Normally accessing its
information is done through TargetSubject, however, if an object has a
direct reference to DefaultInfo instance, then there isn't a target
directly associated with it. Such a situation can occur when using
toolchain info forwarding rules (e.g. :current_foo_toolchain).

Fixes bazelbuild#52
@rickeylev rickeylev force-pushed the default.info.subject branch from cfb1dd4 to 9168001 Compare July 10, 2023 19:38
@copybara-service copybara-service bot merged commit 401ac37 into bazelbuild:master Jul 11, 2023
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.

Add DefaultInfoSubject

1 participant