Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 124 for goVERSION (0.18 sec)

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

    # Regression test for Issue #54908. When running a go install module@version
    # with --mod=readonly moduleInfo was not setting the GoVersion for the module
    # because the checksumOk function was failing because modfetch.GoSumFile
    # was not set when running outside of a module.
    
    env GOTOOLCHAIN=local
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 16:36:17 UTC 2023
    - 364 bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. src/cmd/doc/dirs.go

    		return mainMod, false, nil
    	}
    	// Check 1.14's automatic vendor mode.
    	if fi, err := os.Stat(filepath.Join(mainMod.Dir, "vendor")); err == nil && fi.IsDir() {
    		if mainMod.GoVersion != "" && semver.Compare("v"+mainMod.GoVersion, "v1.14") >= 0 {
    			// The Go version is at least 1.14, and a vendor directory exists.
    			// Set -mod=vendor by default.
    			return mainMod, true, nil
    		}
    	}
    	return mainMod, false, nil
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 17:49:12 UTC 2022
    - 9K bytes
    - Viewed (0)
  6. src/cmd/fix/buildtag.go

    var buildtagFix = fix{
    	name: "buildtag",
    	date: "2021-08-25",
    	f:    buildtag,
    	desc: `Remove +build comments from modules using Go 1.18 or later`,
    }
    
    func buildtag(f *ast.File) bool {
    	if version.Compare(*goVersion, buildtagGoVersionCutoff) < 0 {
    		return false
    	}
    
    	// File is already gofmt-ed, so we know that if there are +build lines,
    	// they are in a comment group that starts with a //go:build line followed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdversion/stdversion.go

    	// since at that time the go directive wasn't clearly
    	// specified as a toolchain requirement.
    	//
    	// TODO(adonovan): after go1.21, call GoVersion directly.
    	pkgVersion := any(pass.Pkg).(interface{ GoVersion() string }).GoVersion()
    	if !versions.AtLeast(pkgVersion, "go1.21") {
    		return nil, nil
    	}
    
    	// disallowedSymbols returns the set of standard library symbols
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/check.go

    	// determine Go version for each file
    	for _, file := range check.files {
    		// use unaltered Config.GoVersion by default
    		// (This version string may contain dot-release numbers as in go1.20.1,
    		// unlike file versions which are Go language versions only, if valid.)
    		v := check.conf.GoVersion
    
    		fileVersion := asGoVersion(file.GoVersion)
    		if fileVersion.isValid() {
    			// use the file version, if applicable
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/mod_go_version_missing.txt

    	example.com/testdep v0.1.0 => ./testdep
    )
    -- go.mod.untidy --
    module example.com/m
    
    go $goversion
    
    require example.com/dep v0.1.0
    
    require example.com/testdep v0.1.0 // indirect
    
    replace (
    	example.com/dep v0.1.0 => ./dep
    	example.com/testdep v0.1.0 => ./testdep
    )
    -- go.mod.tidy --
    module example.com/m
    
    go $goversion
    
    require example.com/dep v0.1.0
    
    replace (
    	example.com/dep v0.1.0 => ./dep
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 22 16:11:33 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modload/load.go

    		compatVersion := ld.TidyCompatibleVersion
    		goVersion := ld.requirements.GoVersion()
    		if compatVersion == "" {
    			if gover.Compare(goVersion, gover.GoStrictVersion) < 0 {
    				compatVersion = gover.Prev(goVersion)
    			} else {
    				// Starting at GoStrictVersion, we no longer maintain compatibility with
    				// versions older than what is listed in the go.mod file.
    				compatVersion = goVersion
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
Back to top