Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 124 for goVERSION (0.14 sec)

  1. src/cmd/go/internal/modload/init.go

    				mainModule,
    				{Path: "go", Version: goVersion},
    				{Path: "toolchain", Version: gover.LocalToolchain()},
    			}
    		} else {
    			goVersion = gover.Local()
    			pruning = pruningForGoVersion(goVersion)
    			roots = []module.Version{
    				{Path: "go", Version: goVersion},
    				{Path: "toolchain", Version: gover.LocalToolchain()},
    			}
    		}
    		rawGoVersion.Store(mainModule, goVersion)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  2. src/cmd/go/internal/gover/toolchain.go

    	"context"
    	"errors"
    	"fmt"
    	"strings"
    )
    
    // FromToolchain returns the Go version for the named toolchain,
    // derived from the name itself (not by running the toolchain).
    // A toolchain is named "goVERSION".
    // A suffix after the VERSION introduced by a -, space, or tab is removed.
    // Examples:
    //
    //	FromToolchain("go1.2.3") == "1.2.3"
    //	FromToolchain("go1.2.3-bigcorp") == "1.2.3"
    //	FromToolchain("invalid") == ""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 23:20:32 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. src/runtime/debug/mod.go

    	// awkwardness from the user.
    	bi.GoVersion = runtime.Version()
    
    	return bi, true
    }
    
    // BuildInfo represents the build information read from a Go binary.
    type BuildInfo struct {
    	// GoVersion is the version of the Go toolchain that built the binary
    	// (for example, "go1.19.2").
    	GoVersion string
    
    	// Path is the package path of the main package for the binary
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 15:06:51 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/work_empty_panic_GOPATH.txt

    # Regression test for https://go.dev/issue/58767:
    # with an empty go.work file in GOPATH mode, calls to load.defaultGODEBUG for a
    # package named "main" panicked in modload.MainModules.GoVersion.
    
    env GO111MODULE=off
    cd example
    go list example/m
    
    -- example/go.work --
    go 1.21
    -- example/m/main.go --
    package main
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 28 18:50:18 UTC 2023
    - 329 bytes
    - Viewed (0)
  5. src/go/build/constraint/vers_test.go

    	for _, tt := range tests {
    		x, err := Parse(tt.in)
    		if err != nil {
    			t.Fatal(err)
    		}
    		v := GoVersion(x)
    		want := ""
    		if tt.out == 0 {
    			want = "go1"
    		} else if tt.out > 0 {
    			want = fmt.Sprintf("go1.%d", tt.out)
    		}
    		if v != want {
    			t.Errorf("GoVersion(%q) = %q, want %q, nil", tt.in, v, want)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 19:39:51 UTC 2023
    - 1K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modload/build.go

    				m.Version = q.Version
    				m.Time = &q.Time
    			}
    		}
    
    		if m.GoVersion == "" && checksumOk("/go.mod") {
    			// Load the go.mod file to determine the Go version, since it hasn't
    			// already been populated from rawGoVersion.
    			if summary, err := rawGoModSummary(mod); err == nil && summary.goVersion != "" {
    				m.GoVersion = summary.goVersion
    			}
    		}
    
    		if m.Version != "" {
    			if checksumOk("/go.mod") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/mod_tidy_version.txt

    	# write our version in toolchain lines.
    env goversion=1.99.0
    env TESTGO_VERSION=go${goversion}
    
    # An invalid argument should be rejected.
    
    ! go mod tidy -go=bananas
    stderr '^invalid value "bananas" for flag -go: expecting a Go version like "'$goversion'"$'
    cmp go.mod go.mod.orig
    
    ! go mod tidy -go=0.9
    stderr '^invalid value "0.9" for flag -go: expecting a Go version like "'$goversion'"$'
    
    ! go mod tidy -go=2000.0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 02 23:07:08 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  8. src/cmd/fix/main.go

    }
    
    func main() {
    	telemetry.Start()
    	flag.Usage = usage
    	flag.Parse()
    	telemetry.Inc("fix/invocations")
    	telemetry.CountFlags("fix/flag:", *flag.CommandLine)
    
    	if !version.IsValid(*goVersion) {
    		report(fmt.Errorf("invalid -go=%s", *goVersion))
    		os.Exit(exitCode)
    	}
    
    	sort.Sort(byDate(fixes))
    
    	if *allowedRewrites != "" {
    		allowed = make(map[string]bool)
    		for _, f := range strings.Split(*allowedRewrites, ",") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  9. src/cmd/fix/main_test.go

    					// information to accurately correlate with the stderr output.
    				} else {
    					t.Parallel()
    				}
    			} else {
    				old := *goVersion
    				*goVersion = tt.Version
    				defer func() {
    					*goVersion = old
    				}()
    			}
    
    			// Apply fix: should get tt.Out.
    			out, fixed, ok := parseFixPrint(t, tt.Fn, tt.Name, tt.In, true)
    			if !ok {
    				return
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. istioctl/pkg/install/k8sversion/version.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package k8sversion
    
    import (
    	"fmt"
    
    	goversion "github.com/hashicorp/go-version"
    	"k8s.io/apimachinery/pkg/version"
    
    	"istio.io/istio/operator/pkg/util/clog"
    	"istio.io/istio/pkg/kube"
    	pkgVersion "istio.io/istio/pkg/version"
    )
    
    const (
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jan 22 02:07:51 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top