- Sort Score
- Result 10 results
- Languages All
Results 31 - 32 of 32 for goEnv (0.03 sec)
-
src/cmd/cgo/internal/testshared/shared_test.go
} if testing.Verbose() { fmt.Printf("+ export GOPATH=%s\n", gopath) fmt.Printf("+ cd %s\n", modRoot) } os.Setenv("GOPATH", gopath) // Explicitly override GOBIN as well, in case it was set through a GOENV file. os.Setenv("GOBIN", filepath.Join(gopath, "bin")) os.Chdir(modRoot) os.Setenv("PWD", modRoot) // The test also needs to install libraries into GOROOT/pkg, so copy the // subset of GOROOT that we need.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 26 01:54:41 UTC 2023 - 36.3K bytes - Viewed (0) -
src/cmd/internal/testdir/testdir_test.go
) runcmd := func(args ...string) ([]byte, error) { cmd := exec.Command(args[0], args[1:]...) var buf bytes.Buffer cmd.Stdout = &buf cmd.Stderr = &buf cmd.Env = append(os.Environ(), "GOENV=off", "GOFLAGS=") if runInDir != "" { cmd.Dir = runInDir // Set PWD to match Dir to speed up os.Getwd in the child process. cmd.Env = append(cmd.Env, "PWD="+cmd.Dir) } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 20:08:06 UTC 2024 - 57.5K bytes - Viewed (0)