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

Disconnected TFM graphs in non deps attributes #350

Merged
merged 2 commits into from
Apr 19, 2023
Merged

Conversation

purkhusid
Copy link
Collaborator

What?

This adds an transition to all label attributes that do not already have the TFM transition.
All this transition does it transition the TFM/RID back to the default configuration.

Why?

Because the end user might have labels that are *_binary targets in those attributes but they should not be connected to the actual TFM graph of the build for the owning target.

Examples are:
Target A uses generated in it's srcs attribute coming from target B
Target A uses a csharp_binary in it's data dependency because it needs to run the binary

## What?
This adds an transition to all label attributes that do not already  have the TFM transition.
All this transition does it transition the TFM/RID back to the default configuration.

## Why?
Because the end user might have labels that are *_binary targets in those attributes but they should not be connected to the actual TFM graph of the build for the owning target.

Examples are:
Target A uses generated  in it's `srcs` attribute  coming from  target B
Target A uses a csharp_binary in it's data dependency because it needs to run the binary
@purkhusid
Copy link
Collaborator Author

purkhusid commented Apr 17, 2023

@jimevans @shs96c This might unblock your work migrating Selenium to rules_dotnet. Could you test this out?

@purkhusid purkhusid merged commit b02980b into master Apr 19, 2023
@purkhusid purkhusid deleted the binary-transitions branch April 19, 2023 08:44
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.

1 participant