Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,265 for gotoolchain (0.15 sec)

  1. src/cmd/go/internal/toolchain/exec.go

    //go:build !js && !wasip1
    
    package toolchain
    
    import (
    	"cmd/go/internal/base"
    	"internal/godebug"
    	"os"
    	"os/exec"
    	"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.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 14:42:39 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/work_init_toolchain.txt

    grep '^go 1.50$' go.work
    ! grep toolchain go.work
    
    # work init with newer modules should bump go,
    # including updating to a newer toolchain as needed.
    # Because work init writes the current toolchain as the go version,
    # it writes the bumped go version, not the max of the used modules.
    env TESTGO_VERSION=go1.21
    env TESTGO_VERSION_SWITCH=switch
    rm go.work
    env GOTOOLCHAIN=local
    ! go work init ./m1_22_0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/mod_import_toolchain.txt

    cmp go.mod go.mod.tidy
    
    cp go.mod.orig go.mod
    env GOTOOLCHAIN=local
    ! go get -v .
    stderr '^go: example.net/b@v0.1.0: module ./b1 requires go >= 1.22.0 \(running go 1.21.0; GOTOOLCHAIN=local\)$'
    env GOTOOLCHAIN=auto
    go get -v .
    cmp stderr get-v-stderr.want
    cmp go.mod go.mod.tidy
    
    cp go.mod.orig go.mod
    env GOTOOLCHAIN=local
    ! go get -u -v .
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/work_sync_toolchain.txt

    stderr '^go: cannot load module m1_22_1 listed in go.work file: m1_22_1'${/}'go.mod requires go >= 1.22.1 \(running go 1.21; GOTOOLCHAIN=local\)$'
    env GOTOOLCHAIN=auto
    go work sync
    stderr '^go: m1_22_1'${/}'go.mod requires go >= 1.22.1; switching to go1.22.9$'
    grep '^go 1.22.1$' go.work
    grep '^toolchain go1.22.9$' go.work
    
    # work sync with newer modules should update go 1.22.1 -> 1.24rc1 and drop toolchain
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. 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)
  6. src/cmd/go/testdata/script/mod_get_future.txt

    env TESTGO_VERSION=go1.21
    env GOTOOLCHAIN=local
    ! go mod download rsc.io/future@v1.0.0
    stderr '^go: rsc.io/future@v1.0.0 requires go >= 1.999 \(running go 1.21; GOTOOLCHAIN=local\)$'
    
    -- go.mod --
    module m
    go 1.21
    
    -- x.go --
    package p
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 19:58:00 UTC 2023
    - 264 bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/mod_toolchain.txt

    env TESTGO_VERSION_SWITCH=switch
    
    go get toolchain@go1.22.1
    stderr '^go: added toolchain go1.22.1$'
    ! stderr '(added|removed|upgraded|downgraded) go'
    grep 'toolchain go1.22.1' go.mod
    
    go get toolchain@none
    stderr '^go: removed toolchain go1.22.1$'
    ! stderr '(added|removed|upgraded|downgraded) go'
    ! grep toolchain go.mod
    
    go get toolchain@go1.22.1
    stderr '^go: added toolchain go1.22.1$'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 02 22:42:42 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/work_edit_toolchain.txt

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

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build js || wasip1
    
    package toolchain
    
    import "cmd/go/internal/base"
    
    func execGoToolchain(gotoolchain, dir, exe string) {
    	base.Fatalf("execGoToolchain unsupported")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 30 19:11:44 UTC 2023
    - 334 bytes
    - Viewed (0)
  10. go.env

    # See https://proxy.golang.org for details.
    GOPROXY=https://proxy.golang.org,direct
    GOSUMDB=sum.golang.org
    
    # Automatically download newer toolchains as directed by go.mod files.
    # See https://go.dev/doc/toolchain for details.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 19:18:46 UTC 2023
    - 505 bytes
    - Viewed (0)
Back to top