- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for rootSelected (0.11 sec)
-
src/cmd/go/internal/modload/buildlist.go
func (rs *Requirements) GoVersion() string { v, _ := rs.rootSelected("go") if v == "" { panic("internal error: missing go version in modload.Requirements") } return v } // rootSelected returns the version of the root dependency with the given module // path, or the zero module.Version and ok=false if the module is not a root // dependency. func (rs *Requirements) rootSelected(path string) (version string, ok bool) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 16:04:44 UTC 2024 - 53.8K bytes - Viewed (0) -
src/cmd/go/internal/modload/load.go
// as a transitive dependency, that transitive dependency is not needed // by any package or test in the main module. _, ok := ld.requirements.rootSelected(m.Path) unused = !ok } if unused { fmt.Fprintf(os.Stderr, "unused %s\n", m.Path) } } } keep := keepSums(ctx, ld, ld.requirements, loadedZipSumsOnly)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 84K bytes - Viewed (0) -
src/cmd/go/internal/modload/init.go
if keepPkgGoModSums { r := resolveReplacement(pkg.mod) keep[modkey(r)] = true } if rs.pruning == pruned && pkg.mod.Path != "" { if v, ok := rs.rootSelected(pkg.mod.Path); ok && v == pkg.mod.Version { // pkg was loaded from a root module, and because the main module has // a pruned module graph we do not check non-root modules 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)