bazelbuild/bazel

cquery --output=files assume convenience symlinks are enabled

Open

#16,277 opened on 2022年9月14日

GitHub で見る
 (7 comments) (2 reactions) (0 assignees)Java (4,465 forks)batch import
P3help wantedteam-Configurabilityteam-Documentationtype: documentation (cleanup)

Repository metrics

Stars
 (25,384 stars)
PR merge metrics
 (平均マージ 22d 20h) (30d で 77 merged PRs)

説明

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

コントリビューターガイド