Automic VaultAutomic Vault

brew

使用 Homebrew, chocolatey, MacPorts, Nix, pacman, scoop, winget 安装 bazelisk

查看 bazelisk 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install bazelisk

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install bazelisk

MacPorts ports tree · devel/bazelisk/Portfile · 来源: api.github.com

Linux

Nix已验证 · 92%
nix profile install nixpkgs#bazelisk

nixpkgs package indexes · pkgs/by-name/ba/bazelisk/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S bazelisk

Arch Linux sync databases · bazelisk · 来源: geo.mirror.pkgbuild.com

Windows

Chocolatey已验证 · 92%
choco install bazelisk

Chocolatey community package catalog · bazelisk · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/bazelisk

Scoop official bucket manifest trees · bucket/bazelisk.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id Bazel.Bazelisk -e

Windows Package Manager source index · Bazel.Bazelisk · 来源: cdn.winget.microsoft.com

概览

软件包摘要

User-friendly launcher for Bazel

命令和别名

  • bazelisk

历史

项目历史与用法

Bazelisk is the Bazel launcher and version manager that makes Bazel behave like a repo-pinned toolchain: it chooses, downloads, verifies, and runs the Bazel version requested by the current workspace.

项目历史

The bazelbuild/bazelisk repository begins in September 2018 with a Python script, and the README notes that Bazelisk was later rewritten in Go. The maintained Go version is now the documented implementation.

Bazelisk's core model is intentionally simple: it can be invoked as bazel or bazelisk, reads USE_BAZEL_VERSION, .bazeliskrc, .bazelversion, or fallback settings, downloads official Bazel releases or forked releases, then passes arguments through to the selected Bazel binary.

采用历史

Bazelisk became common because Bazel workspaces are sensitive to major-version changes, incompatible flags, and migration timing. A checked-in .bazelversion lets teams upgrade Bazel atomically with the source changes needed for that upgrade.

The input records Bazelisk packaging across Homebrew, Chocolatey, MacPorts, Nix, Arch, Scoop, winget, and zypper, and the README also documents npm distribution for frontend developers.

使用方式

Developers install Bazelisk as bazel on PATH, check a .bazelversion file into the repository, and let Bazelisk download and run the matching Bazel binary on laptops and CI.

Advanced workflows use .bazeliskrc and environment variables for custom release mirrors, SHA256 verification, forked Bazel releases, GitHub tokens, migration runs, bisecting Bazel versions, and wrapper scripts under tools/bazel.

为什么软件包爱好者会关心

Bazelisk is package-nerd significant because it separates the package-manager-installed launcher from the project-selected compiler/build-tool version, similar in spirit to nvm-style runtime management.

It is also the practical glue that makes versioned Bazel formulas less painful: repositories can declare their expected Bazel line while users keep one stable launcher installed.

时间线

  • 2018-09: Upstream git history starts with a Python bazelisk implementation.
  • 2018-10: Early commits implement lookup of the latest Bazel release.
  • 2020s: The README documents the maintained Go rewrite, .bazelversion and .bazeliskrc selection, fork support, verification, --migrate, and --bisect.
  • 2020s: Package managers distribute Bazelisk as both bazelisk and bazel for drop-in Bazel launching.

Related projects

  • Bazel is the binary Bazelisk selects and executes.
  • bazel@7 and bazel@8 are versioned package-manager alternatives, while Bazelisk lets a workspace choose those or newer upstream releases dynamically.
  • bazel-diff and bazel-remote CI setups often benefit from Bazelisk because graph hashing and remote-cache behavior should use the workspace's intended Bazel version.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
$workspace/.bazeliskrc$workspace/.bazelversion

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
~/.netrc

可执行文件

已安装的可执行文件

命令类型暴露范围备注
bazeliskcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本1.29.0
管理器更新时间2026-04-27
本地数据OK
上游当前
检测到的最新版本v1.29.0

https://github.com/bazelbuild/bazelisk

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:bazelisk
版本1.29.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/bazelisk
主页https://github.com/bazelbuild/bazelisk/
仓库https://github.com/bazelbuild/bazelisk
上游文档https://github.com/bazelbuild/bazelisk#readme
许可证Apache-2.0
源码归档https://github.com/bazelbuild/bazelisk/archive/refs/tags/v1.29.0.tar.gz
最后更新2026-04-27T22:09:13Z
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namebazelisk
Version Scheme0
Revision0
Head VersionHEAD
Conflicts With
  • bazel
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

bazelisk

nix profile install nixpkgs#bazelisk
  • normalized package name match
  • 匹配方式:Bazelisk
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ba/bazelisk/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
pacman95%

bazelisk 1.29.0-1

A user-friendly launcher for Bazel.

https://github.com/bazelbuild/bazelisk

sudo pacman -S bazelisk
  • License: Apache-2.0
  • Architecture: x86_64
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Bazelisk
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: bazelisk from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

bazelisk

sudo port install bazelisk
  • normalized package name match
  • 匹配方式:Bazelisk
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/bazelisk/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

bazelisk

choco install bazelisk
  • normalized package name match
  • 匹配方式:Bazelisk
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: bazelisk from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','backupper-standard'
Scoop95%

main/bazelisk

scoop install main/bazelisk
  • normalized package name match
  • 匹配方式:Bazelisk
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/bazelisk.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

Bazel.Bazelisk

winget install --id Bazel.Bazelisk -e
  • normalized package name match
  • 匹配方式:Bazelisk
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Bazel.Bazelisk from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment