Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for FilterEnv (0.15 sec)

  1. src/cmd/go/internal/toolchain/select.go

    	// a fatal error upon reaching maxSwitch.
    	// That should be enough to see the repetition.
    	maxSwitch = 100
    )
    
    // FilterEnv returns a copy of env with internal GOTOOLCHAIN environment
    // variables filtered out.
    func FilterEnv(env []string) []string {
    	// Note: Don't need to filter out targetEnv because Switch does that.
    	var out []string
    	for _, e := range env {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:25:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  2. src/cmd/go/main.go

    	// In theory all the commands we invoke should have
    	// the same default computation of these as we do,
    	// 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() }
    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