verifyGoModules ensures that "GO111MODULE" isn't set to "off"
()
| 321 | |
| 322 | // verifyGoModules ensures that "GO111MODULE" isn't set to "off" |
| 323 | func verifyGoModules() { |
| 324 | gomodules := os.Getenv("GO11MODULE") |
| 325 | if gomodules == "off" { |
| 326 | log.Fatalf("GO11MODULE is set to 'off'. Please enable it to continue.") |
| 327 | } |
| 328 | } |
| 329 | |
| 330 | // verifyGoVersion runs "go version" and parses the output. If the version is |
| 331 | // acceptable a check for gopherjs versions are also done. If problems |