Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 32 for goEnv (0.08 sec)

  1. src/make.rc

    # Determine the host compiler toolchain.
    eval `{grep '^(CC|LD|O)=' /$objtype/mkfile}
    
    vflag=()
    if(~ $1 -v) {
    	vflag=(-v)
    	shift
    }
    
    fn bootstrapenv {
    	GOROOT=$GOROOT_BOOTSTRAP GO111MODULE=off GOENV=off GOOS=() GOARCH=() GOEXPERIMENT=() GOFLAGS=() $*
    }
    
    bootgo = 1.20.6
    GOROOT = `{cd .. && pwd}
    goroot_bootstrap_set = 'true'
    if(! ~ $#GOROOT_BOOTSTRAP 1){
    	goroot_bootstrap_set = 'false'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:48:46 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. src/make.bat

    in three different shell languages
    L162::: (make.bash, make.bat, make.rc).
    L163:
    L164::copydist
    L165:mkdir "%GOTOOLDIR%" 2>NUL
    L166:copy cmd\dist\dist.exe "%GOTOOLDIR%\"
    L167:goto :eof
    L168:
    L169::nogoenv
    L170:set GO111MODULE=off
    L171:set GOENV=off
    L172:set GOOS=
    L173:set GOARCH=
    L174:set GOEXPERIMENT=
    L175:set GOFLAGS=
    L176:goto :eof
    L177:
    L178::bootstrapfail
    L179:echo ERROR: Cannot find %GOROOT_BOOTSTRAP%\bin\go.exe
    L180:echo Set GOROOT_BOOTSTRAP to a working Go tree ^>= Go %bootgo%.
    ...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. 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)
  4. src/make.bash

    	for d in sdk/go$bootgo go$bootgo; do
    		if [[ -d "$HOME/$d" ]]; then
    			GOROOT_BOOTSTRAP="$HOME/$d"
    		fi
    	done
    fi
    export GOROOT_BOOTSTRAP
    
    bootstrapenv() {
    	GOROOT="$GOROOT_BOOTSTRAP" GO111MODULE=off GOENV=off GOOS= GOARCH= GOEXPERIMENT= GOFLAGS= "$@"
    }
    
    export GOROOT="$(cd .. && pwd)"
    IFS=$'\n'; for go_exe in $(type -ap go); do
    	if [[ ! -x "$GOROOT_BOOTSTRAP/bin/go" ]]; then
    		goroot_bootstrap=$GOROOT_BOOTSTRAP
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:48:46 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/go/go_test.go

    		// tests to attempt to overwrite the installed standard library.
    		// Bail out entirely in this case.
    		goHostOS = goEnv("GOHOSTOS")
    		os.Setenv("TESTGO_GOHOSTOS", goHostOS)
    		goHostArch = goEnv("GOHOSTARCH")
    		os.Setenv("TESTGO_GOHOSTARCH", goHostArch)
    
    		cgoEnabled = goEnv("CGO_ENABLED")
    
    		// Duplicate the test executable into the path at testGo, for $PATH.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  9. src/cmd/dist/build.go

    	// always go to GOROOT/bin anyway.
    	os.Setenv("GOBIN", gorootBin)
    
    	// Make the environment more predictable.
    	os.Setenv("LANG", "C")
    	os.Setenv("LANGUAGE", "en_US.UTF8")
    	os.Unsetenv("GO111MODULE")
    	os.Setenv("GOENV", "off")
    	os.Unsetenv("GOFLAGS")
    	os.Setenv("GOWORK", "off")
    
    	workdir = xworkdir()
    	if err := os.WriteFile(pathf("%s/go.mod", workdir), []byte("module bootstrap"), 0666); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  10. src/cmd/go/alldocs.go

    // 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
    - 142.4K bytes
    - Viewed (0)
Back to top