- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for HasGoBuild (0.18 sec)
-
src/internal/testenv/testenv_test.go
// The -noopt builder sets GO_GCFLAGS, which causes tests of 'go build' to // be skipped. t.Logf("HasGoBuild is false on %s", b) return } t.Fatalf("HasGoBuild unexpectedly false on %s", b) } t.Logf("HasGoBuild is true; checking consistency with other functions") hasExec := false hasExecGo := false t.Run("MustHaveExec", func(t *testing.T) { testenv.MustHaveExec(t) hasExec = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 25 23:12:44 UTC 2024 - 6.1K bytes - Viewed (0) -
src/internal/testenv/testenv.go
// Builder returns the empty string. func Builder() string { return os.Getenv("GO_BUILDER_NAME") } // HasGoBuild reports whether the current system can build programs with “go build” // and then run them with os.StartProcess or exec.Command. func HasGoBuild() bool { if os.Getenv("GO_GCFLAGS") != "" { // It's too much work to require every caller of the go command
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 16:41:38 UTC 2024 - 15.7K bytes - Viewed (0) -
src/cmd/go/go_test.go
if err != nil { log.Fatal(err) } testTmpDir = dir if !*testWork { defer removeAll(testTmpDir) } testGOCACHE, _ = cache.DefaultDir() if testenv.HasGoBuild() { testBin = filepath.Join(testTmpDir, "testbin") if err := os.Mkdir(testBin, 0777); err != nil { log.Fatal(err) } testGo = filepath.Join(testBin, "go"+exeSuffix) gotool, err := testenv.GoTool()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 81.1K bytes - Viewed (0)