app-admin/kube-bench: Fix build with go-1.12
authorManuel Rüger <mrueg@gentoo.org>
Mon, 28 Oct 2019 13:56:59 +0000 (14:56 +0100)
committerManuel Rüger <mrueg@gentoo.org>
Mon, 28 Oct 2019 13:57:26 +0000 (14:57 +0100)
Package-Manager: Portage-2.3.76, Repoman-2.3.16
Signed-off-by: Manuel Rüger <mrueg@gentoo.org>
app-admin/kube-bench/kube-bench-0.0.34.ebuild

index cf7b9e1eb7265af88456a39dbb772fcb873c9a3e..5b943f248d2ef076f48f3bac3da090c31c05a91e 100644 (file)
@@ -49,7 +49,7 @@ RESTRICT="test"
 
 src_compile() {
        pushd src/${EGO_PN} || die
-       GOPATH="${S}" go build -mod vendor -v -ldflags "-X github.com/aquasecurity/kube-bench/cmd.KubeBenchVersion=${PV}" -o ${PN} . || die
+       GO111MODULE=on GOPATH="${S}" go build -mod vendor -v -ldflags "-X github.com/aquasecurity/kube-bench/cmd.KubeBenchVersion=${PV}" -o ${PN} . || die
        popd || die
 }