Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for highestReplaced (0.12 sec)

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

    	if err == nil {
    		repo = modfetch.Lookup(ctx, proxy, path)
    	} else {
    		repo = emptyRepo{path: path, err: err}
    	}
    
    	if MainModules == nil {
    		return repo, err
    	} else if _, ok := MainModules.HighestReplaced()[path]; ok {
    		return &replacementRepo{repo: repo}, nil
    	}
    
    	return repo, err
    }
    
    // An emptyRepo is a versionRepo that contains no versions.
    type emptyRepo struct {
    	path string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 11 22:29:11 UTC 2023
    - 44.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/import.go

    	// module (golang.org/issue/26241).
    	var mods []module.Version
    	if MainModules != nil { // TODO(#48912): Ensure MainModules exists at this point, and remove the check.
    		for mp, mv := range MainModules.HighestReplaced() {
    			if !maybeInModule(path, mp) {
    				continue
    			}
    			if mv == "" {
    				// The only replacement is a wildcard that doesn't specify a version, so
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
Back to top