Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for GOTOOLCHAIN (0.33 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/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)
  3. src/cmd/go/testdata/script/gotoolchain_path.txt

    stdout go1.21pre3
    
    # GOTOOLCHAIN=go1.50.0
    env GOTOOLCHAIN=go1.50.0
    ! go version
    stderr 'running go1.50.0 from PATH'
    
    # GOTOOLCHAIN=path with toolchain line
    env GOTOOLCHAIN=local
    go mod init m
    go mod edit -toolchain=go1.50.0
    grep go1.50.0 go.mod
    env GOTOOLCHAIN=path
    ! go version
    stderr 'running go1.50.0 from PATH'
    
    # GOTOOLCHAIN=path with go line
    env GOTOOLCHAIN=local
    go mod edit -toolchain=none -go=1.50.0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 06 22:21:42 UTC 2024
    - 1.9K 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. src/internal/cfg/cfg.go

    	GOHOSTARCH
    	GOHOSTOS
    	GOINSECURE
    	GOMIPS
    	GOMIPS64
    	GOMODCACHE
    	GONOPROXY
    	GONOSUMDB
    	GOOS
    	GOPATH
    	GOPPC64
    	GOPRIVATE
    	GOPROXY
    	GORISCV64
    	GOROOT
    	GOSUMDB
    	GOTMPDIR
    	GOTOOLCHAIN
    	GOTOOLDIR
    	GOVCS
    	GOWASM
    	GOWORK
    	GO_EXTLINK_ENABLED
    	PKG_CONFIG
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 01:33:19 UTC 2024
    - 1.2K bytes
    - Viewed (0)
Back to top