Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 26 of 26 for GOTOOLCHAIN (0.12 sec)

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

    # Test support for go mod edit -toolchain to set toolchain to use
    
    env GOTOOLCHAIN=local
    env GO111MODULE=on
    
    ! grep toolchain go.mod
    go mod edit -toolchain=go1.9
    grep 'toolchain go1.9' go.mod
    
    go mod edit -toolchain=default
    grep 'toolchain default' go.mod
    
    go mod edit -toolchain=none
    ! grep toolchain go.mod
    
    -- go.mod --
    module m
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 19:18:46 UTC 2023
    - 339 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/work_get_toolchain.txt

    # go get should update the go and toolchain lines in go.work
    env TESTGO_VERSION=go1.21
    env TESTGO_VERSION_SWITCH=switch
    env GOTOOLCHAIN=auto
    cp go.mod.new go.mod
    cp go.work.new go.work
    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 '^go: added rsc.io/needall v0.0.1'
    grep 'go 1.23$' go.mod
    grep 'go 1.23$' go.work
    grep 'toolchain go1.23.9' go.mod
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 583 bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/go/testdata/script/gotoolchain_loop.txt

    env GOTOOLCHAIN=auto
    env TESTGO_VERSION=go1.21.1
    
    # Basic switch should work.
    env TESTGO_VERSION_SWITCH=switch
    go version
    stdout go1.21.99
    
    # Toolchain target mismatch should be detected.
    env TESTGO_VERSION_SWITCH=mismatch
    ! go version
    stderr '^go: toolchain go1.21.1 invoked to provide go1.21.99$'
    
    # Toolchain loop should be detected.
    env TESTGO_VERSION_SWITCH=loop
    ! go version
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 31 15:20:23 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/mod_goline_too_new.txt

    # Go should refuse to build code that is too new according to go.mod.
    
    # go.mod too new
    env GOTOOLCHAIN=local
    ! go build .
    stderr '^go: go.mod requires go >= 1.99999 \(running go 1\..+\)$'
    
    # go.mod referenced from go.work too new
    cp go.work.old go.work
    ! go build .
    stderr '^go: module . listed in go.work file requires go >= 1.99999, but go.work lists go 1.10; to update it:\n\tgo work use$'
    
    ! go work sync
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modfetch/toolchain.go

    	}
    
    	// If we're asking about "go" (not "toolchain"), pretend to have
    	// all earlier Go versions available without network access:
    	// we will provide those ourselves, at least in GOTOOLCHAIN=auto mode.
    	if r.path == "go" && gover.Compare(v, gover.Local()) <= 0 {
    		return &RevInfo{Version: prefix + v}, nil
    	}
    
    	// Similarly, if we're asking about *exactly* the current toolchain,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 13 16:44:24 UTC 2023
    - 5.6K bytes
    - Viewed (0)
Back to top