Building fish completion fails
- Dominant language
- Java
- Stars
- 25.8k
- Forks
- 4.6k
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 72
Description
### 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` ?
```text
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](https://github.com/bazelbuild/bazel/issues/5088) that fish completion is generally supported, which is unfortunately not documented [on the website](https://bazel.build/install/completion). 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](https://archlinux.org/packages/community/x86_64/bazel/) 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
```
Contributor guide
Research direction
Start with scripts/fish/README.md and rerun `bazel build //scripts:fish_completion`, using `--verbose_failures` and `--sandbox_debug` as suggested. Inspect the failing `//third_party:filter_netty_dynamic_libs` genrule and the `third_party/BUILD` entry around line 618. Done means the fish completion target builds successfully without the reported zip errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100