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

Status of per-target transitions/workarounds #773

Open
cbarrete opened this issue Sep 11, 2024 · 0 comments
Open

Status of per-target transitions/workarounds #773

cbarrete opened this issue Sep 11, 2024 · 0 comments

Comments

@cbarrete
Copy link
Contributor

We find ourselves writing quite a few wrapper rules that simply transition an underlying target's providers. The added boilerplate and rules are a little annoying, but the intermediary targets (which show up in buck2 targets) are causing the most confusion at the moment.

The docs state:

The Buck2 team is considering the implementation of per target transitions (that is, transitions referenced at a rule instantiation site as opposed to rule declaration site). No specific plans or APIs exists at the moment.

Is this still accurate? Is there something that the open source community could do to help move the needle?

Is something like #714 (comment) with a transition_dep and a wrapper macro that creates a dummy dep first the best workaround in the meantime?

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

No branches or pull requests

1 participant