- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for modRoots (0.1 sec)
-
src/cmd/go/internal/modindex/scan.go
// be indexed because it contains symlinks. func indexModule(modroot string) ([]byte, error) { fsys.Trace("indexModule", modroot) var packages []*rawPackage // If the root itself is a symlink to a directory, // we want to follow it (see https://go.dev/issue/50807). // Add a trailing separator to force that to happen. root := str.WithFilePathSeparator(modroot)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 8.5K bytes - Viewed (0) -
src/cmd/go/internal/modload/search.go
walkPkgs(filepath.Join(cfg.GOROOTsrc, "cmd"), "cmd", pruneGoMod) } } if cfg.BuildMod == "vendor" { for _, mod := range MainModules.Versions() { if modRoot := MainModules.ModRoot(mod); modRoot != "" { walkPkgs(modRoot, MainModules.PathPrefix(mod), pruneGoMod|pruneVendor) } } if HasModRoot() { walkPkgs(VendorDir(), "", pruneVendor) } return }
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/testdata/script/build_trimpath.txt
log.Fatal(err) } if os.Getenv("GO111MODULE") == "on" { out, err := exec.Command("go", "env", "GOMOD").Output() if err != nil { log.Fatal(err) } modRoot := filepath.Dir(strings.TrimSpace(string(out))) check(data, "module root", modRoot) } else { check(data, "GOPATH", os.Getenv("GOPATH")) } check(data, "GOROOT", os.Getenv("GOROOT")) } func check(data []byte, desc, dir string) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 4.9K bytes - Viewed (0)