bazelbuild/bazel

cquery --output=files assume convenience symlinks are enabled

Open

#16.277 aberto em 14 de set. de 2022

Ver no GitHub
 (7 comments) (2 reactions) (0 assignees)Java (4.465 forks)batch import
P3help wantedteam-Configurabilityteam-Documentationtype: documentation (cleanup)

Métricas do repositório

Stars
 (25.384 stars)
Métricas de merge de PR
 (Mesclagem média 22d 20h) (77 fundiu PRs em 30d)

Description

Description of the bug:

Bazel cquery --output=files assumes the convenience symlinks are enabled and outputs files with them. It does not take the --experimental_convenience_symlinks=ignore option into account.

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

# in the bazel repo, on master (390d212d76e91f413f143b53a997b0bf846c453a)
$ bazel cquery --output=files //examples/cpp:hello-world 2>/dev/null
bazel-out/darwin-fastbuild/bin/examples/cpp/hello-world
# this is expected
$ bazel cquery --experimental_convenience_symlinks=ignore --output=files //examples/cpp:hello-world 2>/dev/null
bazel-out/darwin-fastbuild/bin/examples/cpp/hello-world
# this I would expect to output the output_base instead

Which operating system are you running Bazel on?

macOS 12.4

What is the output of bazel info release?

release 5.3.0

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 master; git rev-parse HEAD ?

git@github.com:bazelbuild/bazel.git
390d212d76e91f413f143b53a997b0bf846c453a
390d212d76e91f413f143b53a997b0bf846c453a

Have you found anything relevant by searching the web?

No response

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

No response

Guia do colaborador