- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for PackageModRoot (0.23 sec)
-
src/cmd/go/internal/load/pkg.go
if !cfg.ModulesEnabled { buildMode = build.ImportComment } else { buildContext.GOPATH = "" // Clear GOPATH so packages are imported as pure module packages } 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) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 120K bytes - Viewed (0)