Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for WorkFileReplaceMap (0.25 sec)

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

    			return gover.LocalToolchain()
    		}
    		if f.Toolchain != nil {
    			return f.Toolchain.Name
    		}
    	}
    	return "go" + mms.GoVersion()
    }
    
    func (mms *MainModuleSet) WorkFileReplaceMap() map[module.Version]module.Version {
    	return mms.workFileReplaceMap
    }
    
    var MainModules *MainModuleSet
    
    type Root int
    
    const (
    	// AutoRoot is the default for most commands. modload.Init will look for
    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/modfile.go

    	} else if MainModules.Contains(mod.Path) && mod.Version == "" {
    		// Don't replace the workspace version of the main module.
    		return module.Version{}, "", ""
    	}
    	if _, r, ok := replacement(mod, MainModules.WorkFileReplaceMap()); ok {
    		return r, "", workFilePath
    	}
    	for _, v := range MainModules.Versions() {
    		if index := MainModules.Index(v); index != nil {
    			if from, r, ok := replacement(mod, index.replace); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 17:53:40 UTC 2023
    - 26.7K bytes
    - Viewed (0)
Back to top