Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for getEnv (1.2 sec)

  1. src/cmd/go/internal/cfg/cfg.go

    	}
    }
    
    // Getenv gets the value for the configuration key.
    // It consults the operating system environment
    // and then the go/env file.
    // If Getenv is called for a key that cannot be set
    // in the go/env file (for example GODEBUG), it panics.
    // This ensures that CanGetenv is accurate, so that
    // 'go env -w' stays in sync with what Getenv can retrieve.
    func Getenv(key string) string {
    	if !CanGetenv(key) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  2. src/cmd/go/script_test.go

    		homeEnvName() + "=/no-home",
    		"CCACHE_DISABLE=1", // ccache breaks with non-existent HOME
    		"GOARCH=" + runtime.GOARCH,
    		"TESTGO_GOHOSTARCH=" + goHostArch,
    		"GOCACHE=" + testGOCACHE,
    		"GOCOVERDIR=" + os.Getenv("GOCOVERDIR"),
    		"GODEBUG=" + os.Getenv("GODEBUG"),
    		"GOEXE=" + cfg.ExeSuffix,
    		"GOEXPERIMENT=" + os.Getenv("GOEXPERIMENT"),
    		"GOOS=" + runtime.GOOS,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. src/cmd/dist/buildtool.go

    	defer os.Setenv("GOROOT", os.Getenv("GOROOT"))
    	os.Setenv("GOROOT", goroot_bootstrap)
    
    	defer os.Setenv("GOPATH", os.Getenv("GOPATH"))
    	os.Setenv("GOPATH", workspace)
    
    	defer os.Setenv("GOBIN", os.Getenv("GOBIN"))
    	os.Setenv("GOBIN", "")
    
    	os.Setenv("GOOS", "")
    	os.Setenv("GOHOSTOS", "")
    	os.Setenv("GOARCH", "")
    	os.Setenv("GOHOSTARCH", "")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 23:29:41 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. src/cmd/go/internal/envcmd/env.go

    		{Name: "GOSUMDB", Value: cfg.GOSUMDB, Changed: cfg.GOSUMDBChanged},
    		{Name: "GOTMPDIR", Value: cfg.Getenv("GOTMPDIR")},
    		{Name: "GOTOOLCHAIN"},
    		{Name: "GOTOOLDIR", Value: build.ToolDir},
    		{Name: "GOVCS", Value: cfg.GOVCS},
    		{Name: "GOVERSION", Value: runtime.Version()},
    		{Name: "GODEBUG", Value: os.Getenv("GODEBUG")},
    		{Name: "GOTELEMETRY", Value: telemetry.Mode()},
    		{Name: "GOTELEMETRYDIR", Value: telemetry.Dir()},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  5. misc/ios/go_ios_exec.go

    	devID = getenv("GOIOS_DEV_ID")
    
    	// e.g. Z8B3JBXXXX.org.golang.sample, Z8B3JBXXXX prefix is available at
    	// https://developer.apple.com/membercenter/index.action#accountSummary as Team ID.
    	appID = getenv("GOIOS_APP_ID")
    
    	// e.g. Z8B3JBXXXX, available at
    	// https://developer.apple.com/membercenter/index.action#accountSummary as Team ID.
    	teamID = getenv("GOIOS_TEAM_ID")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 23.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/internal/driver/fetch.go

    // $HOME is not set, falls back to os.TempDir().
    func setTmpDir(ui plugin.UI) (string, error) {
    	var dirs []string
    	if profileDir := os.Getenv("PPROF_TMPDIR"); profileDir != "" {
    		dirs = append(dirs, profileDir)
    	}
    	if homeDir := os.Getenv(homeEnv()); homeDir != "" {
    		dirs = append(dirs, filepath.Join(homeDir, "pprof"))
    	}
    	dirs = append(dirs, os.TempDir())
    	for _, tmpDir := range dirs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 19K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testcshared/cshared_test.go

    	cgoCflags := os.Getenv("CGO_CFLAGS")
    	if cgoCflags != "" {
    		cgoCflags += " "
    	}
    	cgoCflags += "-I" + tmpdir
    
    	cgoLdflags := os.Getenv("CGO_LDFLAGS")
    	if cgoLdflags != "" {
    		cgoLdflags += " "
    	}
    	cgoLdflags += "-L" + tmpdir + " -ltestgo2c2go"
    
    	goenv := []string{"CGO_CFLAGS=" + cgoCflags, "CGO_LDFLAGS=" + cgoLdflags}
    
    	ldLibPath := os.Getenv("LD_LIBRARY_PATH")
    	if ldLibPath != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
  8. src/cmd/distpack/pack.go

    	}
    
    	// Load context.
    	goroot = runtime.GOROOT()
    	if goroot == "" {
    		log.Fatalf("missing $GOROOT")
    	}
    	gohostos = runtime.GOOS
    	gohostarch = runtime.GOARCH
    	goos = os.Getenv("GOOS")
    	if goos == "" {
    		goos = gohostos
    	}
    	goarch = os.Getenv("GOARCH")
    	if goarch == "" {
    		goarch = gohostarch
    	}
    	goosUnderGoarch := goos + "_" + goarch
    	goosDashGoarch := goos + "-" + goarch
    	exe := ""
    	if goos == "windows" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. src/cmd/go/internal/work/init.go

    	}
    
    	if cfg.BuildP <= 0 {
    		base.Fatalf("go: -p must be a positive integer: %v\n", cfg.BuildP)
    	}
    
    	// Make sure CC, CXX, and FC are absolute paths.
    	for _, key := range []string{"CC", "CXX", "FC"} {
    		value := cfg.Getenv(key)
    		args, err := quoted.Split(value)
    		if err != nil {
    			base.Fatalf("go: %s environment variable could not be parsed: %v", key, err)
    		}
    		if len(args) == 0 {
    			continue
    		}
    		path := args[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 19:13:34 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  10. src/cmd/go/main.go

    	// but in practice there might be skew
    	// This makes sure we all agree.
    	cfg.OrigEnv = toolchain.FilterEnv(os.Environ())
    	cfg.CmdEnv = envcmd.MkEnv()
    	for _, env := range cfg.CmdEnv {
    		if os.Getenv(env.Name) != env.Value {
    			os.Setenv(env.Name, env.Value)
    		}
    	}
    
    	cmd.Flag.Usage = func() { cmd.Usage() }
    	if cmd.CustomFlags {
    		args = args[1:]
    	} else {
    		base.SetFromGOFLAGS(&cmd.Flag)
    		cmd.Flag.Parse(args[1:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:09:11 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top