Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for GOTOOLCHAIN (0.74 sec)

  1. src/cmd/go/testdata/script/gotoolchain_issue66175.txt

    stderr 'go: downloading go1.20 '
    
    
    # check for invalid GOTOOLCHAIN
    env GOTOOLCHAIN=go1.14
    go version
    stdout 'go1.14'
    
    env GOTOOLCHAIN=go1.20
    ! go version
    stderr 'go: downloading go1.20 '
    
    env GOTOOLCHAIN=go1.21
    ! go version
    stderr 'go: invalid toolchain: go1.21 is a language version but not a toolchain version \(go1.21.x\)'
    
    env GOTOOLCHAIN=go1.22
    ! go version
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 21:32:07 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. src/cmd/go/internal/toolchain/select.go

    		return
    	}
    
    	// Interpret GOTOOLCHAIN to select the Go toolchain to run.
    	gotoolchain := cfg.Getenv("GOTOOLCHAIN")
    	gover.Startup.GOTOOLCHAIN = gotoolchain
    	if gotoolchain == "" {
    		// cfg.Getenv should fall back to $GOROOT/go.env,
    		// so this should not happen, unless a packager
    		// has deleted the GOTOOLCHAIN line from go.env.
    		// It can also happen if GOROOT is missing or broken,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:25:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/env_changed.txt

    # Test query for non-defaults in the env
    
    env GOROOT=./a
    env GOTOOLCHAIN=local
    env GOSUMDB=nodefault
    env GOPROXY=nodefault
    env GO111MODULE=auto
    env CGO_CFLAGS=nodefault
    env CGO_CPPFLAGS=nodefault
    
    go env -changed
    # linux output like GOTOOLCHAIN='local'
    # windows output like GOTOOLCHAIN=local
    stdout 'GOTOOLCHAIN=''?local''?'
    stdout 'GOSUMDB=''?nodefault''?'
    stdout 'GOPROXY=''?nodefault''?'
    stdout 'GO111MODULE=''?auto''?'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:49:03 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. src/cmd/go/internal/toolchain/switch.go

    	}
    	return "go" + latest, nil
    }
    
    // HasAuto reports whether the GOTOOLCHAIN setting allows "auto" upgrades.
    func HasAuto() bool {
    	env := cfg.Getenv("GOTOOLCHAIN")
    	return env == "auto" || strings.HasSuffix(env, "+auto")
    }
    
    // HasPath reports whether the GOTOOLCHAIN setting allows "path" upgrades.
    func HasPath() bool {
    	env := cfg.Getenv("GOTOOLCHAIN")
    	return env == "path" || strings.HasSuffix(env, "+path")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. hack/lib/golang.sh

      if [ "${GOTOOLCHAIN:-auto}" != 'auto' ]; then
        # no-op, just respect GOTOOLCHAIN
        :
      elif [ -n "${FORCE_HOST_GO:-}" ]; then
        # ensure existing host version is used, like before GOTOOLCHAIN existed
        export GOTOOLCHAIN='local'
      else
        # otherwise, we want to ensure the go version matches GO_VERSION
        GOTOOLCHAIN="go${GO_VERSION}"
        export GOTOOLCHAIN
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 16:43:08 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  6. src/cmd/distpack/pack.go

    //   - a binary distribution (tgz or zip) for the current GOOS and GOARCH
    //   - a source distribution that is independent of GOOS/GOARCH
    //   - the module mod, info, and zip files for a distribution in module form
    //     (as used by GOTOOLCHAIN support in the go command).
    //
    // Distpack is typically invoked by the -distpack flag to make.bash.
    // A cross-compiled distribution for goos/goarch can be built using:
    //
    //	GOOS=goos GOARCH=goarch ./make.bash -distpack
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. src/cmd/go/internal/envcmd/env.go

    			if env[i].Value != "" {
    				env[i].Changed = true
    			}
    		case "GOCACHE":
    			env[i].Value, env[i].Changed = cache.DefaultDir()
    		case "GOTOOLCHAIN":
    			env[i].Value, env[i].Changed = cfg.EnvOrAndChanged("GOTOOLCHAIN", "")
    		case "GODEBUG":
    			env[i].Changed = env[i].Value != ""
    		}
    	}
    
    	if work.GccgoBin != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  8. build/common.sh

        --env "KUBE_STATIC_OVERRIDES=' ${KUBE_STATIC_OVERRIDES[*]:-} '"
        --env "FORCE_HOST_GO=${FORCE_HOST_GO:-}"
        --env "GO_VERSION=${GO_VERSION:-}"
        --env "GOTOOLCHAIN=${GOTOOLCHAIN:-}"
        --env "GOFLAGS=${GOFLAGS:-}"
        --env "GOGCFLAGS=${GOGCFLAGS:-}"
        --env "SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH:-}"
      )
    
      # use GOLDFLAGS only if it is set explicitly.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  9. src/cmd/go/script_test.go

    		"GOSUMDB=" + testSumDBVerifierKey,
    		"GONOPROXY=",
    		"GONOSUMDB=",
    		"GOVCS=*:all",
    		"devnull=" + os.DevNull,
    		"goversion=" + gover.Local(),
    		"CMDGO_TEST_RUN_MAIN=true",
    		"HGRCPATH=",
    		"GOTOOLCHAIN=auto",
    		"newline=\n",
    	}
    
    	if testenv.Builder() != "" || os.Getenv("GIT_TRACE_CURL") == "1" {
    		// To help diagnose https://go.dev/issue/52545,
    		// enable tracing for Git HTTPS requests.
    		env = append(env,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. src/cmd/go/internal/help/helpdoc.go

    	GOROOT
    		The root of the go tree.
    	GOSUMDB
    		The name of checksum database to use and optionally its public key and
    		URL. See https://golang.org/ref/mod#authenticating.
    	GOTOOLCHAIN
    		Controls which Go toolchain is used. See https://go.dev/doc/toolchain.
    	GOTMPDIR
    		The directory where the go command will write
    		temporary source files, packages, and binaries.
    	GOVCS
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 36.3K bytes
    - Viewed (0)
Back to top