sys-cluster/kubelogin: fix tests

Closes: https://bugs.gentoo.org/956756
Signed-off-by: Kenton Groombridge <concord@gentoo.org>
This commit is contained in:
Kenton Groombridge
2025-05-29 11:16:06 -04:00
parent cb2e967d9a
commit 0834da33ad

View File

@@ -13,6 +13,15 @@ LICENSE="Apache-2.0 BSD BSD-2 ISC MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
src_prepare() {
default
# -buildmode=pie not supported when -race is enabled
if [[ ${GOFLAGS} == *buildmode=pie* ]]; then
sed -e 's/ -race / /' -i Makefile || die
fi
}
src_compile() {
ego build -ldflags="-s -w" -o ./bin/${PN} .
}