Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for highestReplaced (0.14 sec)

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

    // directory.
    func (mms *MainModuleSet) ModContainingCWD() module.Version {
    	return mms.modContainingCWD
    }
    
    func (mms *MainModuleSet) HighestReplaced() map[string]string {
    	return mms.highestReplaced
    }
    
    // GoVersion returns the go version set on the single module, in module mode,
    // or the go.work file in workspace mode.
    func (mms *MainModuleSet) GoVersion() string {
    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/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)
  3. 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