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

Closed
tpasternak opened this issue Nov 14, 2024 · 2 comments
Closed

genquery ignores --consistent_labels #24325

tpasternak opened this issue Nov 14, 2024 · 2 comments
Labels
team-Configurability platforms, toolchains, cquery, select(), config transitions type: bug untriaged

Comments

@tpasternak
Copy link

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?

@iancha1992 iancha1992 added the team-Configurability platforms, toolchains, cquery, select(), config transitions label Nov 14, 2024
bazel-io pushed a commit to bazel-io/bazel that referenced this issue Nov 19, 2024
Fixes bazelbuild#24325

Closes bazelbuild#24326.

PiperOrigin-RevId: 697842646
Change-Id: Ied25448861c5133aae6f266000fe983625f48963
github-merge-queue bot pushed a commit that referenced this issue Nov 19, 2024
Fixes #24325

Closes #24326.

PiperOrigin-RevId: 697842646
Change-Id: Ied25448861c5133aae6f266000fe983625f48963

Commit
5141c06

Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
@iancha1992
Copy link
Member

A fix for this issue has been included in Bazel 8.0.0 RC3. Please test out the release candidate and report any issues as soon as possible.
If you're using Bazelisk, you can point to the latest RC by setting USE_BAZEL_VERSION=8.0.0rc3. Thanks!

ramil-bitrise pushed a commit to bitrise-io/bazel that referenced this issue Dec 18, 2024
Fixes bazelbuild#24325

Closes bazelbuild#24326.

PiperOrigin-RevId: 697842646
Change-Id: Ied25448861c5133aae6f266000fe983625f48963
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