bazelbuild/bazel

Publish shell completion scripts separately in releases so they can be downloaded by e.g. the Bazelisk brew formula

Open

#22,659 创建于 2024年6月6日

在 GitHub 查看
 (1 评论) (4 反应) (0 负责人)Java (4,465 fork)batch import
P2help wantedteam-OSStype: feature request

仓库指标

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

描述

Description of the feature request:

The Bazelisk homebrew formula downloads the zsh completions for the latest bazel release and installs them.

However it can't do the same with fish or bash completions, because they can't be easily downloaded. The bazel formula builds them directly, but that isn't feasible for bazelisk.

Currently the completion scripts are included in the self-extracting archive shell scripts, but aren't otherwise accessible as far as I can tell.

As well as public homebrew, we would also use these files internally if they were available.

Which category does this issue belong to?

CLI

What underlying problem are you trying to solve with this feature?

Making it easy to download the shell completion scripts for bash, zsh, and fish.

Doesn't have to be this layout, but as an example it would be great if this worked:

# One file per completion:
curl -sSL https://github.com/bazelbuild/bazel/releases/latest/download/bazel-completion.bash
curl -sSL https://github.com/bazelbuild/bazel/releases/latest/download/bazel-completion.zsh
curl -sSL https://github.com/bazelbuild/bazel/releases/latest/download/bazel-completion.fish

# Or one file, containing _bazel , bazel-complete.bash , bazel.fish
curl -sSL https://github.com/bazelbuild/bazel/releases/latest/download/bazel-completions.tar.gz

Which operating system are you running Bazel on?

macOS latest

What is the output of bazel info release?

release 7.1.2

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

Have you found anything relevant by searching the web?

Can't find any existing issues.

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

No response

贡献者指南