Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 98 for goVERSION (0.23 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/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)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/go/testdata/script/work_init_path.txt

    cmpenv go.work $WORK/go.work.want
    
    -- go.mod --
    module example
    go 1.18
    -- dir/go.mod --
    module example
    go 1.18
    -- dir/foo/bar/go.mod --
    module example
    go 1.18
    -- $WORK/go.work.want --
    go $goversion
    
    use (
    	.
    	..
    	./foo/bar
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 17:53:40 UTC 2023
    - 571 bytes
    - Viewed (0)
  9. src/cmd/go/internal/modload/modfile.go

    			}
    		}
    		if summary.goVersion != "" && gover.Compare(summary.goVersion, gover.GoStrictVersion) >= 0 {
    			if gover.Compare(summary.goVersion, gover.Local()) > 0 {
    				return nil, &gover.TooNewError{What: "module " + m.String(), GoVersion: summary.goVersion}
    			}
    			summary.require = append(summary.require, module.Version{Path: "go", Version: summary.goVersion})
    		}
    		if len(f.Retract) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 17:53:40 UTC 2023
    - 26.7K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/cgocall/cgocall_go120.go

    // license that can be found in the LICENSE file.
    
    //go:build !go1.21
    
    package cgocall
    
    import "go/types"
    
    func setGoVersion(tc *types.Config, pkg *types.Package) {
    	// no types.Package.GoVersion until Go 1.21
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 321 bytes
    - Viewed (0)
Back to top