Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 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/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