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

genquery ignores --consistent_labels #24325

Open
tpasternak opened this issue Nov 14, 2024 · 1 comment · May be fixed by #24326
Open

genquery ignores --consistent_labels #24325

tpasternak opened this issue Nov 14, 2024 · 1 comment · May be fixed by #24326
Labels
team-Configurability platforms, toolchains, cquery, select(), config transitions type: bug untriaged

Comments

@tpasternak
Copy link
Contributor

tpasternak commented Nov 14, 2024

Description of the bug:

# A simple genrule that generates a file using echo
genrule(
    name = "generate_hello_file",
    srcs = [],
    outs = ["hello.txt"],
    cmd = "echo 'Hello, Bazel!' > $@",
)

# A genquery rule to query all files in the current package
genquery(
    name = "query_hello_files",
    scope = ["@@//:generate_hello_file"],
    expression = "//:generate_hello_file",
    opts = ["--output=streamed_jsonproto", "--consistent_labels=true"],
)

In the output of bazel build :query_hello_files, the labels not prefixed with @@

Which category does this issue belong to?

No response

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

No response

Which operating system are you running Bazel on?

Fedora 40

What is the output of bazel info release?

release 7.4.1

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse HEAD ?

No response

If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

@fmeum
Copy link
Collaborator

fmeum commented Nov 14, 2024

@tpasternak Could you test #24326?

@fmeum fmeum linked a pull request Nov 14, 2024 that will close this issue
@iancha1992 iancha1992 added the team-Configurability platforms, toolchains, cquery, select(), config transitions label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Configurability platforms, toolchains, cquery, select(), config transitions type: bug untriaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants
@tpasternak @fmeum @iancha1992 @satyanandak and others