- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for GOENV (0.33 sec)
-
src/cmd/cgo/internal/testcshared/cshared_test.go
globalSkip = func(t *testing.T) { t.Skip("no go build") } return m.Run() } GOOS = goEnv("GOOS") GOARCH = goEnv("GOARCH") GOROOT = goEnv("GOROOT") if _, err := os.Stat(GOROOT); os.IsNotExist(err) { log.Fatalf("Unable able to find GOROOT at '%s'", GOROOT) } cc = []string{goEnv("CC")} out := goEnv("GOGCCFLAGS") quote := '\000' start := 0 lastSpace := true backslash := false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:19:50 UTC 2023 - 21K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/cc_test.go
} if overcommit.value == 2 { t.Skip("vm.overcommit_memory=2") } } var env struct { sync.Once m map[string]string err error } // goEnv returns the output of $(go env) as a map. func goEnv(key string) (string, error) { env.Once.Do(func() { var out []byte out, env.err = exec.Command("go", "env", "-json").Output() if env.err != nil { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 09 20:00:56 UTC 2024 - 14.4K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/carchive_test.go
os.Setenv("PWD", modRoot) if err := os.WriteFile("go.mod", []byte("module testcarchive\n"), 0666); err != nil { log.Panic(err) } GOOS = goEnv("GOOS") GOARCH = goEnv("GOARCH") bin = cmdToRun("./testp") ccOut := goEnv("CC") cc = []string{string(ccOut)} out := goEnv("GOGCCFLAGS") quote := '\000' start := 0 lastSpace := true backslash := false s := string(out) for i, c := range s {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 00:43:51 UTC 2023 - 34.8K bytes - Viewed (0) -
src/cmd/go/internal/cfg/cfg.go
// and reports whether the effective value differs from the default. func EnvFile() (string, bool, error) { if file := os.Getenv("GOENV"); file != "" { if file == "off" { return "", false, fmt.Errorf("GOENV=off") } return file, true, nil } dir, err := os.UserConfigDir() if err != nil { return "", false, err } if dir == "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:51 UTC 2024 - 19.3K bytes - Viewed (0) -
src/cmd/go/internal/envcmd/env.go
env := []cfg.EnvVar{ {Name: "GO111MODULE", Value: cfg.Getenv("GO111MODULE")}, {Name: "GOARCH", Value: cfg.Goarch, Changed: cfg.Goarch != runtime.GOARCH}, {Name: "GOBIN", Value: cfg.GOBIN}, {Name: "GOCACHE"}, {Name: "GOENV", Value: envFile, Changed: envFileChanged}, {Name: "GOEXE", Value: cfg.ExeSuffix}, // List the raw value of GOEXPERIMENT, not the cleaned one. // The set of default experiments may change from one release
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:51 UTC 2024 - 19.6K bytes - Viewed (0) -
src/cmd/go/internal/help/helpdoc.go
are recorded in a Go environment configuration file stored in the per-user configuration directory, as reported by os.UserConfigDir. The location of the configuration file can be changed by setting the environment variable GOENV, and 'go env GOENV' prints the effective location, but 'go env -w' cannot change the default location. See 'go help env' for details. General-purpose environment variables: GO111MODULE
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:54:28 UTC 2024 - 36.3K bytes - Viewed (0) -
Makefile.core.mk
# Target: environment and tools #----------------------------------------------------------------------------- .PHONY: show.env show.goenv show.env: ; $(info $(H) environment variables...) $(Q) printenv show.goenv: ; $(info $(H) go environment...) $(Q) $(GO) version $(Q) $(GO) env # show makefile variables. Usage: make show.<variable-name> show.%: ; $(info $* $(H) $($*))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Jun 02 19:53:04 UTC 2024 - 23.2K bytes - Viewed (0) -
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)