Skip to content

Honor buck2.infer_target_names in queries - #1467

Open
9999years wants to merge 1 commit into
facebook:mainfrom
MercuryTechnologies:wiggles/oquy
Open

Honor buck2.infer_target_names in queries#1467
9999years wants to merge 1 commit into
facebook:mainfrom
MercuryTechnologies:wiggles/oquy

Conversation

@9999years

Copy link
Copy Markdown
Contributor

Honor the buck2.infer_target_names setting in uquery, cquery, aquery, and BXL query evaluation. Thread InferTargetNames through the shared query literal parser.

NB: This may be a bug aside from the setting; buck build and most other commands already interpret //foo as //foo:foo, so it's a bit odd that buck uquery and similar wouldn't.

See 088c75c (#1004 / Differential Revision D112694484).

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 18, 2026
@meta-codesync

meta-codesync Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

This pull request has been imported. If you are a Meta employee, you can view this in D116492697. (Because this pull request was imported automatically, there will not be any future comments.)

Comment thread app/buck2_query_impls/src/dice.rs Outdated
Honor the `buck2.infer_target_names` setting in uquery, cquery, aquery, and BXL query evaluation.
Thread `InferTargetNames` through the shared query literal parser.

NB: This may be a bug aside from the setting; `buck build` and most
other commands already interpret `//foo` as `//foo:foo`, so it's a bit
odd that `buck uquery` and similar wouldn't.

See 088c75c (facebook#1004 / Differential Revision D112694484).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants