Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for IsToolchain (0.17 sec)

  1. src/cmd/go/internal/modfetch/cache.go

    	if err != nil {
    		return "", err
    	}
    	return filepath.Join(cfg.GOMODCACHE, "cache/download", enc, "/@v"), nil
    }
    
    func CachePath(ctx context.Context, m module.Version, suffix string) (string, error) {
    	if gover.IsToolchain(m.Path) {
    		return "", ErrToolchain
    	}
    	dir, err := cacheDir(ctx, m.Path)
    	if err != nil {
    		return "", err
    	}
    	if !gover.ModIsValid(m.Path, m.Version) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/list.go

    		}
    
    		// Module path or pattern.
    		var match func(string) bool
    		if arg == "all" {
    			match = func(p string) bool { return !gover.IsToolchain(p) }
    		} else if strings.Contains(arg, "...") {
    			mp := pkgpattern.MatchPattern(arg)
    			match = func(p string) bool { return mp(p) && !gover.IsToolchain(p) }
    		} else {
    			var v string
    			if mg == nil {
    				var ok bool
    				v, ok = rs.rootSelected(arg)
    				if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 22:43:50 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modcmd/verify.go

    			base.Errorf("%s", err)
    			ok = false
    		}
    	}
    	if ok {
    		fmt.Printf("all modules verified\n")
    	}
    }
    
    func verifyMod(ctx context.Context, mod module.Version) []error {
    	if gover.IsToolchain(mod.Path) {
    		// "go" and "toolchain" have no disk footprint; nothing to verify.
    		return nil
    	}
    	if modload.MainModules.Contains(mod.Path) {
    		return nil
    	}
    	var errs []error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 16:56:35 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modget/query.go

    func (q *query) matchesPath(path string) bool {
    	if q.matchWildcard != nil && !gover.IsToolchain(path) {
    		return q.matchWildcard(path)
    	}
    	return path == q.pattern
    }
    
    // canMatchInModule reports whether the given module path can potentially
    // contain q.pattern.
    func (q *query) canMatchInModule(mPath string) bool {
    	if gover.IsToolchain(mPath) {
    		return false
    	}
    	if q.canMatchWildcardInModule != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 27 15:48:25 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modload/search.go

    			}
    		}
    		if HasModRoot() {
    			walkPkgs(VendorDir(), "", pruneVendor)
    		}
    		return
    	}
    
    	for _, mod := range modules {
    		if gover.IsToolchain(mod.Path) || !treeCanMatch(mod.Path) {
    			continue
    		}
    
    		var (
    			root, modPrefix string
    			isLocal         bool
    		)
    		if MainModules.Contains(mod.Path) {
    			if MainModules.ModRoot(mod) == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modload/modfile.go

    func goModSummary(m module.Version) (*modFileSummary, error) {
    	if m.Version == "" && !inWorkspaceMode() && MainModules.Contains(m.Path) {
    		panic("internal error: goModSummary called on a main module")
    	}
    	if gover.IsToolchain(m.Path) {
    		return rawGoModSummary(m)
    	}
    
    	if cfg.BuildMod == "vendor" {
    		summary := &modFileSummary{
    			module: module.Version{Path: m.Path},
    		}
    
    		readVendorList(VendorDir())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 17:53:40 UTC 2023
    - 26.7K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/build.go

    		info.GoVersion = v.(string)
    	}
    
    	// completeFromModCache fills in the extra fields in m using the module cache.
    	completeFromModCache := func(m *modinfo.ModulePublic) {
    		if gover.IsToolchain(m.Path) {
    			return
    		}
    
    		checksumOk := func(suffix string) bool {
    			return rs == nil || m.Version == "" || !mustHaveSums() ||
    				modfetch.HaveSum(module.Version{Path: m.Path, Version: m.Version + suffix})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modload/query.go

    // AllowedFunc of qm.
    func (qm *queryMatcher) allowsVersion(ctx context.Context, v string) bool {
    	if qm.prefix != "" && !strings.HasPrefix(v, qm.prefix) {
    		if gover.IsToolchain(qm.path) && strings.TrimSuffix(qm.prefix, ".") == v {
    			// Allow 1.21 to match "1.21." prefix.
    		} else {
    			return false
    		}
    	}
    	if qm.filter != nil && !qm.filter(v) {
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 11 22:29:11 UTC 2023
    - 44.7K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modget/get.go

    		if gover.IsToolchain(path) {
    			continue
    		}
    		old := r.initialVersion[path]
    		new := reason.version
    		if old != new && (old != "" || new != "none") {
    			changes[path] = change{path, old, new}
    		}
    	}
    
    	// Collect changes to explicit requirements in go.mod.
    	for _, req := range oldReqs {
    		if gover.IsToolchain(req.Path) {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:26:32 UTC 2024
    - 66.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/toolchain/select.go

    		}
    	}
    
    	if !strings.Contains(pkgArg, "@") || build.IsLocalImport(pkgArg) || filepath.IsAbs(pkgArg) {
    		return false
    	}
    	path, version, _ := strings.Cut(pkgArg, "@")
    	if path == "" || version == "" || gover.IsToolchain(path) {
    		return false
    	}
    
    	if !modcacherwSeen && base.InGOFLAGS("-modcacherw") {
    		fs := flag.NewFlagSet("goInstallVersion", flag.ExitOnError)
    		fs.Var(modcacherwVal, "modcacherw", modcacherwFlag.Usage)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:25:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
Back to top