Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for rootSelected (0.4 sec)

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

    		m := module.Version{Path: path, Version: vers}
    		return moduleInfo(ctx, nil, m, 0, nil)
    	}
    
    	rs := LoadModFile(ctx)
    
    	var (
    		v  string
    		ok bool
    	)
    	if rs.pruning == pruned {
    		v, ok = rs.rootSelected(path)
    	}
    	if !ok {
    		mg, err := rs.Graph(ctx)
    		if err != nil {
    			base.Fatal(err)
    		}
    		v = mg.Selected(path)
    	}
    
    	if v == "none" {
    		return &modinfo.ModulePublic{
    			Path: path,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/edit.go

    		for _, m := range mustSelect {
    			if m.Version != "none" && !MainModules.Contains(m.Path) {
    				rootPaths = append(rootPaths, m.Path)
    			}
    		}
    
    		for _, m := range roots {
    			if v, ok := rs.rootSelected(m.Path); ok && (v == m.Version || rs.direct[m.Path]) {
    				// m.Path was formerly a root, and either its version hasn't changed or
    				// we believe that it provides a package directly imported by a package
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 21:46:32 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modload/import.go

    			if gover.IsToolchain(prefix) {
    				// Do not use the synthetic "go" module for "go/ast".
    				continue
    			}
    			var (
    				v  string
    				ok bool
    			)
    			if mg == nil {
    				v, ok = rs.rootSelected(prefix)
    			} else {
    				v, ok = mg.Selected(prefix), true
    			}
    			if !ok || v == "none" {
    				continue
    			}
    			m := module.Version{Path: prefix, Version: v}
    
    			root, isLocal, err := fetch(ctx, m)
    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