mirror of
https://github.com/github/codeql.git
synced 2026-01-29 14:23:03 +01:00
Explicitly set GO111MODULE to auto
This commit is contained in:
@@ -281,6 +281,9 @@ func main() {
|
||||
depMode := GoGetNoModules
|
||||
modMode := ModUnset
|
||||
needGopath := true
|
||||
if _, present := os.LookupEnv("GO111MODULE"); !present {
|
||||
os.Setenv("GO111MODULE", "auto")
|
||||
}
|
||||
if util.FileExists("go.mod") {
|
||||
depMode = GoGetWithModules
|
||||
needGopath = false
|
||||
|
||||
Reference in New Issue
Block a user