bazelbuild/bazel

Building fish completion fails

Open

#17,346 创建于 2023年1月27日

在 GitHub 查看
 (9 评论) (0 反应) (0 负责人)Java (4,465 fork)batch import
P3help wantedteam-OSStype: bug

仓库指标

Star
 (25,384 star)
PR 合并指标
 (平均合并 22天 20小时) (30 天内合并 77 个 PR)

描述

Description of the bug:

When building the fish completion script (as desribed in scripts/fish/README.md), I observe the following error:

ERROR: /home/sflip/src/bazel/third_party/BUILD:618:8: Executing genrule //third_party:filter_netty_dynamic_libs [for tool] failed: (Exit 1): bash failed: error executing command (from target //third_party:filter_netty_dynamic_libs) /bin/bash -c ... (remaining 1 argument skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
zip: */license/*.gz: No such file or directory
zip: *.jnilib.gz: No such file or directory
zip: *.dll.gz: No such file or directory
Target //scripts:fish_completion failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 109.165s, Critical Path: 33.05s
INFO: 422 processes: 33 internal, 355 linux-sandbox, 1 local, 33 worker.
FAILED: Build did NOT complete successfully

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

  • clone bazel repository
  • cd into bazel directory
  • execute bazel build //scripts:fish_completion

Which operating system are you running Bazel on?

Arch Linux (Kernel: Linux 6.1.8-arch1-1)

What is the output of bazel info release?

release 6.0.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 ?

https://github.com/bazelbuild/bazel
5a23ab2f6416b7ed450bb7b0a59d7aa0f68eea8d
5a23ab2f6416b7ed450bb7b0a59d7aa0f68eea8d

Have you found anything relevant by searching the web?

I did not find this issue on SO, Github issues or email threads.

At least I found out via this issue that fish completion is generally supported, which is unfortunately not documented on the website. This is how I discovered scripts/fish/README.md in the first place.

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

On Arch Linux, I installed bazel from the bazelisk community package rather than compiling it from source (The cloned source was only used to build the fish completions):

> pacman -Qi bazel
Name            : bazelisk
Version         : 1.15.0-1
Description     : A user-friendly launcher for Bazel.
Architecture    : x86_64
URL             : https://github.com/bazelbuild/bazelisk
Licenses        : Apache
Groups          : None
Provides        : bazel
Depends On      : None
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : bazel
Replaces        : None
Installed Size  : 5.00 MiB
Packager        : Unknown Packager
Build Date      : Mon 05 Dec 2022 10:09:12 AM CET
Install Date    : Mon 05 Dec 2022 10:09:37 AM CET
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : None

贡献者指南