Install this version:
emerge -a =dev-build/bazelisk-1.29.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-build/bazelisk-1.29.0
Or alternatively:
emerge --autounmask-write -a =dev-build/bazelisk-1.29.0
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="A user-friendly launcher for Bazel written in Go"
HOMEPAGE="https://github.com/bazelbuild/bazelisk/"
SRC_URI="
https://github.com/bazelbuild/${PN}/archive/refs/tags/v${PV}.tar.gz
-> ${P}.gh.tar.gz
https://dev.gentoo.org/~xgqt/distfiles/deps/${P}-deps.tar.xz
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="+bazel-symlink"
DOCS=( CONTRIBUTING.md README.md )
src_compile() {
mkdir -p bin || die
local go_ldflags="-X main.BazeliskVersion=${PV}"
local -a go_buildargs=(
-ldflags "${go_ldflags}"
-o bin
)
ego build "${go_buildargs[@]}"
}
src_install() {
exeinto /usr/bin
doexe "bin/${PN}"
einstalldocs
if use bazel-symlink ; then
dosym -r /usr/bin/bazelisk /usr/bin/bazel
fi
}
Manage flags for this package:
euse -i <flag> -p dev-build/bazelisk |
euse -E <flag> -p dev-build/bazelisk |
euse -D <flag> -p dev-build/bazelisk
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | bazelisk-1.29.0-deps.tar.xz | 5921060 bytes | https://dev.gentoo.org/~xgqt/distfiles/deps/bazelisk-1.29.0-deps.tar.xz |
| DIST | bazelisk-1.29.0.gh.tar.gz | 167799 bytes | https://github.com/bazelbuild/bazelisk/archive/refs/tags/v1.29.0.tar.gz |