- Sort Score
- Result 10 results
- Languages All
Results 11 - 16 of 16 for hasPathPrefix (0.22 sec)
-
src/cmd/go/internal/modget/query.go
func (q *query) canMatchInModule(mPath string) bool { if gover.IsToolchain(mPath) { return false } if q.canMatchWildcardInModule != nil { return q.canMatchWildcardInModule(mPath) } return str.HasPathPrefix(q.pattern, mPath) } // pathOnce invokes f to generate the pathSet for the given path, // if one is still needed. // // Note that, unlike sync.Once, pathOnce does not guarantee that a concurrent
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 27 15:48:25 UTC 2023 - 11.2K bytes - Viewed (0) -
src/cmd/go/internal/modindex/read.go
if err == nil { return mi.Package(relPath(pkgdir, modroot)), nil } if !errors.Is(err, errNotFromModuleCache) { return nil, err } if cfg.BuildContext.Compiler == "gccgo" && str.HasPathPrefix(modroot, cfg.GOROOTsrc) { return nil, err // gccgo has no sources for GOROOT packages. } return openIndexPackage(modroot, pkgdir) } // GetModule returns the Module for the given modroot.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 29.7K bytes - Viewed (0) -
src/cmd/go/internal/modload/import.go
} else if ok { return mainModule, MainModules.ModRoot(mainModule), dir, nil, nil } } } dir := filepath.Join(cfg.GOROOTsrc, path) modroot = cfg.GOROOTsrc if str.HasPathPrefix(path, "cmd") { modroot = filepath.Join(cfg.GOROOTsrc, "cmd") } dirs = append(dirs, dir) roots = append(roots, modroot) mods = append(mods, module.Version{}) } // -mod=vendor is special.
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/load/pkg.go
} modroot := modload.PackageModRoot(ctx, r.path) if modroot == "" && str.HasPathPrefix(r.dir, cfg.GOROOTsrc) { modroot = cfg.GOROOTsrc gorootSrcCmd := filepath.Join(cfg.GOROOTsrc, "cmd") if str.HasPathPrefix(r.dir, gorootSrcCmd) { modroot = gorootSrcCmd } } if modroot != "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 120K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go
} } func filterWithAttrsFunction(key string, p storage.SelectionPredicate) filterWithAttrsFunc { filterFunc := func(objKey string, label labels.Set, field fields.Set) bool { if !hasPathPrefix(objKey, key) { return false } return p.MatchesObjectAttributes(label, field) } return filterFunc }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 10:12:02 UTC 2024 - 51.8K bytes - Viewed (0) -
src/cmd/go/internal/modload/load.go
// path when imported from the standard-library package at parentPath. func (ld *loader) stdVendor(parentPath, path string) string { if search.IsStandardImportPath(path) { return path } if str.HasPathPrefix(parentPath, "cmd") { if !ld.VendorModulesInGOROOTSrc || !MainModules.Contains("cmd") { vendorPath := pathpkg.Join("cmd", "vendor", path)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 84K bytes - Viewed (0)