Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ModCompare (0.14 sec)

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

    			// the conflict. Find the next-lowest candidate and apply it.
    			rejectedRoot[m] = true
    			prev := m
    			for {
    				prev, err = previousVersion(ctx, prev)
    				if gover.ModCompare(m.Path, m.Version, origV) > 0 && (gover.ModCompare(m.Path, prev.Version, origV) < 0 || err != nil) {
    					// previousVersion skipped over origV. Insert it into the order.
    					prev.Version = origV
    				} else if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 21:46:32 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/buildlist.go

    		if i > 0 {
    			prev := rootModules[i-1]
    			if prev.Path > m.Path || (prev.Path == m.Path && gover.ModCompare(m.Path, prev.Version, m.Version) > 0) {
    				panic(fmt.Sprintf("newRequirements called with unsorted roots: %v", rootModules))
    			}
    		}
    
    		if v, ok := rs.maxRootVersion[m.Path]; ok && gover.ModCompare(m.Path, v, m.Version) >= 0 {
    			continue
    		}
    		rs.maxRootVersion[m.Path] = m.Version
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 16:04:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modload/build.go

    		// authenticated.
    		return
    	} else if err != nil {
    		if m.Error == nil {
    			m.Error = &modinfo.ModuleError{Err: err.Error()}
    		}
    		return
    	}
    
    	if gover.ModCompare(m.Path, info.Version, m.Version) > 0 {
    		m.Update = &modinfo.ModulePublic{
    			Path:    m.Path,
    			Version: info.Version,
    			Time:    &info.Time,
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modload/import.go

    				} else {
    					mv = module.ZeroPseudoVersion("v0")
    				}
    			}
    			mg, err := rs.Graph(ctx)
    			if err != nil {
    				return module.Version{}, err
    			}
    			if gover.ModCompare(mp, mg.Selected(mp), mv) >= 0 {
    				// We can't resolve the import by adding mp@mv to the module graph,
    				// because the selected version of mp is already at least mv.
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modget/get.go

    			continue
    		}
    		r.work.Add(func() {
    			if _, err := modfetch.DownloadZip(ctx, mActual); err != nil {
    				verb := "upgraded"
    				if gover.ModCompare(m.Path, m.Version, old.Version) < 0 {
    					verb = "downgraded"
    				}
    				replaced := ""
    				if mActual != m {
    					replaced = fmt.Sprintf(" (replaced by %s)", mActual)
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:26:32 UTC 2024
    - 66.5K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modload/init.go

    		}
    		replacedByWorkFile[r.Old.Path] = true
    		v, ok := mainModules.highestReplaced[r.Old.Path]
    		if !ok || gover.ModCompare(r.Old.Path, r.Old.Version, v) > 0 {
    			mainModules.highestReplaced[r.Old.Path] = r.Old.Version
    		}
    		replacements[r.Old] = r.New
    	}
    	for i, m := range ms {
    		mainModules.pathPrefix[m] = m.Path
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
Back to top