app-backup/restic: use older go module behavior
authorJason A. Donenfeld <zx2c4@gentoo.org>
Tue, 1 Oct 2019 09:02:08 +0000 (11:02 +0200)
committerJason A. Donenfeld <zx2c4@gentoo.org>
Tue, 1 Oct 2019 09:02:39 +0000 (11:02 +0200)
Go 1.13 changed the default GO111MODULE value, and Restic hasn't been
updated since July to account for this, so let's opt-in to the old
behavior so that the build system still works.

Closes: https://bugs.gentoo.org/693764
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>
app-backup/restic/restic-0.9.5.ebuild

index 6b97caddd1d504506dfafb35aabad92ca573313f..538885775d0b85ee85991a821630e144972ffc32 100644 (file)
@@ -32,12 +32,12 @@ src_compile() {
                -o restic ${EGO_PN}/cmd/restic
        )
 
-       GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
+       GO111MODULE=off GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
                go build "${mygoargs[@]}" || die
 }
 
 src_test() {
-       GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
+       GO111MODULE=off GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
                go test -timeout 30m -v -work -x ${EGO_PN}/cmd/... ${EGO_PN}/internal/... || die
 }