Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/build.go b/build.go
index 2e3e5d05..0b3a6a61 100644
--- a/build.go
+++ b/build.go
@@ -575,6 +575,9 @@ func main() {
buildArgs = append(buildArgs, "-mod=vendor")
testArgs = append(testArgs, "-mod=vendor")
+
+ goEnv["GO111MODULE"] = "on"
+ buildEnv["GO111MODULE"] = "on"
} else {
if tempdir == "" {
tempdir, err = ioutil.TempDir("", fmt.Sprintf("%v-build-", config.Name))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment