Install this version:
emerge -a =dev-db/spanner-cli-0.11.2
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-db/spanner-cli-0.11.2
Or alternatively:
emerge --autounmask-write -a =dev-db/spanner-cli-0.11.2
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.11.2 | 8 | ~amd64 | 0 |
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="Interactive command line tool for Cloud Spanner"
HOMEPAGE="https://github.com/cloudspannerecosystem/spanner-cli"
SRC_URI="
https://github.com/cloudspannerecosystem/spanner-cli/archive/refs/tags/v${PV}.tar.gz
-> ${P}.tar.gz
https://github.com/vitaly-zdanevich/gentoo-overlay/releases/download/${P}/${P}-vendor.tar.xz
"
LICENSE="Apache-2.0"
# Dependent module licenses
LICENSE+="
BSD MIT
"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND=">=dev-lang/go-1.24"
DOCS=( README.md )
src_prepare() {
default
# upstream takes the version from the build info, which is "(devel)" when built from a tarball
sed -i \
-e 's/info, ok := debug.ReadBuildInfo()/_, ok := debug.ReadBuildInfo()/' \
-e "s/return info.Main.Version/return \"v${PV}\"/" \
main.go || die
}
src_compile() {
ego build -o ${PN}
}
src_test() {
ego test ./...
}
src_install() {
dobin ${PN}
einstalldocs
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | spanner-cli-0.11.2-vendor.tar.xz | 3442752 bytes | https://github.com/vitaly-zdanevich/gentoo-overlay/releases/download/spanner-cli-0.11.2/spanner-cli-0.11.2-vendor.tar.xz |
| DIST | spanner-cli-0.11.2.tar.gz | 596228 bytes | https://github.com/cloudspannerecosystem/spanner-cli/archive/refs/tags/v0.11.2.tar.gz |