Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for CmdEnv (0.16 sec)

  1. src/syscall/mksyscall_windows.go

    	listCmd.Env = append(os.Environ(), "GO111MODULE=on")
    
    	var (
    		cmdEnv  []string
    		modArgs []string
    	)
    	if out, err := listCmd.Output(); err == nil && string(bytes.TrimSpace(out)) == "std" {
    		// Force module mode to use mkwinsyscall at the same version as the x/sys
    		// module vendored into the standard library.
    		cmdEnv = append(os.Environ(), "GO111MODULE=on")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 2K bytes
    - Viewed (0)
  2. src/cmd/go/internal/envcmd/env.go

    	`,
    }
    
    func init() {
    	CmdEnv.Run = runEnv // break init cycle
    	base.AddChdirFlag(&CmdEnv.Flag)
    	base.AddBuildFlagsNX(&CmdEnv.Flag)
    }
    
    var (
    	envJson    = CmdEnv.Flag.Bool("json", false, "")
    	envU       = CmdEnv.Flag.Bool("u", false, "")
    	envW       = CmdEnv.Flag.Bool("w", false, "")
    	envChanged = CmdEnv.Flag.Bool("changed", false, "")
    )
    
    func MkEnv() []cfg.EnvVar {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  3. 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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:09:11 UTC 2024
    - 10K bytes
    - Viewed (0)
  4. src/cmd/go/internal/cfg/cfg.go

    }
    
    // OrigEnv is the original environment of the program at startup.
    var OrigEnv []string
    
    // CmdEnv is the new environment for running go tool commands.
    // User binaries (during go test or go run) are run with OrigEnv,
    // not CmdEnv.
    var CmdEnv []EnvVar
    
    var envCache struct {
    	once   sync.Once
    	m      map[string]string
    	goroot map[string]string
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  5. src/cmd/dist/main.go

    `)
    	xexit(2)
    }
    
    // commands records the available commands.
    var commands = map[string]func(){
    	"banner":    cmdbanner,
    	"bootstrap": cmdbootstrap,
    	"clean":     cmdclean,
    	"env":       cmdenv,
    	"install":   cmdinstall,
    	"list":      cmdlist,
    	"test":      cmdtest,
    	"version":   cmdversion,
    }
    
    // main takes care of OS-specific startup and dispatches to xmain.
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 22 19:44:52 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  6. src/cmd/dist/build.go

    		// Remove distribution packages.
    		xremoveall(pathf("%s/pkg/distpack", goroot))
    	}
    }
    
    /*
     * command implementations
     */
    
    // The env command prints the default environment.
    func cmdenv() {
    	path := flag.Bool("p", false, "emit updated PATH")
    	plan9 := flag.Bool("9", gohostos == "plan9", "emit plan 9 syntax")
    	windows := flag.Bool("w", gohostos == "windows", "emit windows syntax")
    	xflagparse(0)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
Back to top