How to use c/aquery to find the dependents of an anon_target
- Dominant language
- Rust
- Stars
- 4.4k
- Forks
- 394
- PR merge metrics
- No merged PRs in 30d
Description
Given a situation where I have multiple named non-anon targets depending on the same anon_target, is there a way I can find what all those non-anon targets are? I think what I'm looking for are the rdeps of some covering target universe over those named targets on that anon_target. But whenever I try to use an anon target in a query, like something like this:
```
buck2 cquery "rdeps(//program:lint, anon//:lint_report_single@15ca92b70428afb8)"
```
buck2 says:
```
Error evaluating expression:
rdeps(//program:lin<>nt_report_single@15ca92b70428afb8)
^--------------------------------------------------------------^
Caused by:
0: Invalid relative target pattern `anon//:lint_report_single@15ca92b70428afb8` is not allowed
1: unknown cell alias: `anon`. In cell `root`, known aliases are: ...
```
Contributor guide
Assessment
This issue has not been assessed yet.