Blob Blame History Raw
From 742e71bb16a909acd89bc9c8178ed1a14d09b9c3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= <zebob.m@gmail.com>
Date: Mon, 25 Jan 2021 04:13:53 +0100
Subject: [PATCH 1/1] Add missing GOPATH environment variable
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
---
 nocmp_test.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nocmp_test.go b/nocmp_test.go
index d4be166..2156350 100644
--- a/nocmp_test.go
+++ b/nocmp_test.go
@@ -155,6 +155,8 @@ func TestNocmpIntegration(t *testing.T) {
 	// Forget OS build enviroment and set up a minimal one for "go build"
 	// to run.
 	cmd.Env = []string{
+		"GO111MODULE=off",
+		"GOPATH=" + filepath.Join(tempdir, "src"),
 		"GOCACHE=" + filepath.Join(tempdir, "gocache"),
 	}
 	cmd.Stderr = &stderr
-- 
2.29.2