MCPcopy Index your code
hub / github.com/perkeep/perkeep / verifyGoModules

Function verifyGoModules

make.go:323–328  ·  view source on GitHub ↗

verifyGoModules ensures that "GO111MODULE" isn't set to "off"

()

Source from the content-addressed store, hash-verified

321
322// verifyGoModules ensures that "GO111MODULE" isn't set to "off"
323func 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

Callers 1

mainFunction · 0.85

Calls 1

FatalfMethod · 0.65

Tested by

no test coverage detected