Skip to content

Instantly share code, notes, and snippets.

@fd0
Created July 29, 2019 07:22
Show Gist options
  • Save fd0/7e30c2d4c379454842660e9096ef83cb to your computer and use it in GitHub Desktop.
Save fd0/7e30c2d4c379454842660e9096ef83cb to your computer and use it in GitHub Desktop.
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