- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for dirInModule (0.18 sec)
-
src/cmd/go/internal/modload/import.go
) // dirInModule locates the directory that would hold the package named by the given path, // if it were in the module with module path mpath and root mdir. // If path is syntactically not within mpath, // or if mdir is a local file tree (isLocal == true) and the directory // that would hold path is in a sub-module (covered by a go.mod below mdir), // dirInModule returns "", false, nil. //
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/search.go
return match } root, isLocal, err := fetch(ctx, m) if err != nil { match.Errs = []error{err} return match } dir, haveGoFiles, err := dirInModule(pattern, m.Path, root, isLocal) if err != nil { match.Errs = []error{err} return match } if haveGoFiles { if _, _, err := scanDir(root, dir, tags); err != imports.ErrNoGo {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 17:55:15 UTC 2023 - 7.9K bytes - Viewed (0) -
src/cmd/go/internal/modload/query.go
prefix := mod.Path if MainModules.Contains(mod.Path) { prefix = MainModules.PathPrefix(module.Version{Path: mod.Path}) } for _, root := range roots { if _, ok, err := dirInModule(pattern, prefix, root, isLocal); err != nil { m.AddError(err) } else if ok { m.Pkgs = []string{pattern} } } return m } } var mainModuleMatches []module.Version
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 11 22:29:11 UTC 2023 - 44.7K bytes - Viewed (0) -
src/cmd/go/internal/modload/load.go
// within module "std" either. return "", errPkgIsBuiltin } return pkg, nil } pkg := pathpkg.Join(mainModulePrefix, suffix) if _, ok, err := dirInModule(pkg, mainModulePrefix, modRoot, true); err != nil { return "", err } else if !ok { // This main module could contain the directory but doesn't. Other main
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 84K bytes - Viewed (0)