Install this version:
emerge -a =app-admin/hcloud-1.62.2
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-admin/hcloud-1.62.2
Or alternatively:
emerge --autounmask-write -a =app-admin/hcloud-1.62.2
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.62.2 | 8 | ~amd64 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="A command-line interface for Hetzner Cloud"
HOMEPAGE="https://github.com/hetznercloud/cli"
SRC_URI="https://dev.gentoo.org/~ago/distfiles/${P}.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND=">=dev-lang/go-1.25.5"
src_compile() {
ego build -o ${PN} -ldflags "-w -X github.com/hetznercloud/cli/internal/version.versionPrerelease=gentoo" ./cmd/${PN}
}
src_test() {
./hcloud version
if [[ $? -ne 0 ]]
then
die "hcloud version test failed"
fi
# Avoid error like:
# -buildmode=pie not supported when -race is enabled on linux/amd64
GOFLAGS=${GOFLAGS//-buildmode=pie}
ego test -coverpkg=./internal/... -coverprofile=coverage.txt -v -race ./...
}
src_install() {
dobin ${PN}
}
>=dev-lang/go-1.25.5
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | hcloud-1.62.2.tar.xz | 2308220 bytes | https://dev.gentoo.org/~ago/distfiles/hcloud-1.62.2.tar.xz |