auto enable go module

pull/126/head
kun 2019-11-07 09:28:16 +08:00
parent c32cef2d02
commit 5b72060f37
1 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,9 @@ func init() {
os.Setenv("GOPRIVATE", excludeHost) os.Setenv("GOPRIVATE", excludeHost)
} }
// Enable Go module
os.Setenv("GO111MODULE", "on")
downloadRoot = getDownloadRoot() downloadRoot = getDownloadRoot()
} }