- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for HasGoBuild (0.11 sec)
-
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/cgo/internal/testcshared/cshared_test.go
if _, err := os.Stat("/etc/alpine-release"); err == nil { globalSkip = func(t *testing.T) { t.Skip("skipping failing test on alpine - go.dev/issue/19938") } return m.Run() } } if !testenv.HasGoBuild() { // Checking for "go build" is a proxy for whether or not we can run "go env". globalSkip = func(t *testing.T) { t.Skip("no go build") } return m.Run() } GOOS = goEnv("GOOS") GOARCH = goEnv("GOARCH")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:19:50 UTC 2023 - 21K bytes - Viewed (0)