- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for rootSelected (0.17 sec)
-
src/cmd/go/internal/modload/list.go
if vers == "upgrade" || vers == "patch" { if _, ok := rs.rootSelected(path); !ok || rs.pruning == unpruned { needFullGraph = true if !HasModRoot() { base.Fatalf("go: cannot match %q: %v", arg, ErrNoModRoot) } } } continue } if _, ok := rs.rootSelected(arg); !ok || rs.pruning == unpruned { needFullGraph = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 22:43:50 UTC 2023 - 8.8K bytes - Viewed (0) -
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/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) -
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/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) -
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) -
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)