Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for GOTOOLCHAIN (0.19 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/gotoolchain_local.txt

    env GOTOOLCHAIN=go1.600
    go version
    stdout go1.600
    
    env GOTOOLCHAIN=go1.400
    go version
    stdout go1.400
    
    # GOTOOLCHAIN=version+auto sets a minimum.
    env GOTOOLCHAIN=go1.600+auto
    go version
    stdout go1.600
    
    env GOTOOLCHAIN=go1.400.0+auto
    go version
    stdout go1.400.0
    
    # GOTOOLCHAIN=version+path sets a minimum too.
    env GOTOOLCHAIN=go1.600+path
    go version
    stdout go1.600
    
    env GOTOOLCHAIN=go1.400+path
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 25 21:19:11 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/gotoolchain_net.txt

    # GOTOOLCHAIN from network
    [!exec:/bin/sh] stop 'the fake proxy serves shell scripts instead of binaries'
    env GOTOOLCHAIN=go1.999testmod
    go version
    stderr 'go: downloading go1.999testmod \(.*/.*\)'
    
    # GOTOOLCHAIN cached from network
    go version
    ! stderr downloading
    stdout go1.999testmod
    
    # GOTOOLCHAIN with GOSUMDB enabled but at a bad URL should operate in cache and not try badurl
    env oldsumdb=$GOSUMDB
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 17:16:47 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. src/cmd/go/testdata/script/mod_get_exec_toolchain.txt

    env TESTGO_VERSION_SWITCH=switch
    
    # GOTOOLCHAIN=auto should run the newer toolchain
    env GOTOOLCHAIN=auto
    cp go.mod.new go.mod
    go get rsc.io/needgo121 rsc.io/needgo122 rsc.io/needgo123 rsc.io/needall
    stderr '^go: rsc.io/needall@v0.0.1 requires go >= 1.23; switching to go1.23.9$'
    ! stderr '\(running'
    stderr '^go: added rsc.io/needall v0.0.1'
    grep 'go 1.23' go.mod
    grep 'toolchain go1.23.9' go.mod
    
    # GOTOOLCHAIN=min+auto should run the newer toolchain
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 19:23:42 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/mod_download_exec_toolchain.txt

    # a module zip that we don't understand.
    
    # GOTOOLCHAIN=auto should run the newer toolchain
    env GOTOOLCHAIN=auto
    go mod download rsc.io/needgo121@latest rsc.io/needgo122@latest rsc.io/needgo123@latest rsc.io/needall@latest
    stderr '^go: rsc.io/needall@v0.0.1 requires go >= 1.23; switching to go1.23.9$'
    ! stderr '\(running'
    
    # GOTOOLCHAIN=min+auto should run the newer toolchain
    env GOTOOLCHAIN=go1.21+auto
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 19:32:39 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. src/cmd/go/internal/toolchain/exec.go

    	"runtime"
    	"syscall"
    )
    
    // execGoToolchain execs the Go toolchain with the given name (gotoolchain),
    // GOROOT directory, and go command executable.
    // The GOROOT directory is empty if we are invoking a command named
    // gotoolchain found in $PATH.
    func execGoToolchain(gotoolchain, dir, exe string) {
    	os.Setenv(targetEnv, gotoolchain)
    	if dir == "" {
    		os.Unsetenv("GOROOT")
    	} else {
    		os.Setenv("GOROOT", dir)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 14:42:39 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/work_use_toolchain.txt

    # including updating to a newer toolchain as needed.
    env TESTGO_VERSION=go1.21
    env TESTGO_VERSION_SWITCH=switch
    rm go.work
    go work init
    env GOTOOLCHAIN=local
    ! go work use ./m1_22_0
    stderr '^go: m1_22_0'${/}'go.mod requires go >= 1.22.0 \(running go 1.21; GOTOOLCHAIN=local\)$'
    env GOTOOLCHAIN=auto
    go work use ./m1_22_0
    stderr '^go: m1_22_0'${/}'go.mod requires go >= 1.22.0; switching to go1.22.9$'
    grep '^go 1.22.0$' go.work
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 1.6K bytes
    - Viewed (0)
Back to top