- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ShortPath (0.24 sec)
-
src/cmd/go/internal/workcmd/use.go
info, err := fsys.Stat(base.ShortPath(absArg)) if err != nil { // Errors raised from os.Stat are formatted to be more user-friendly. if os.IsNotExist(err) { err = fmt.Errorf("directory %v does not exist", base.ShortPath(absArg)) } sw.Error(err) continue } else if !info.IsDir() { sw.Error(fmt.Errorf("%s is not a directory", base.ShortPath(absArg))) continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Jun 03 21:13:11 UTC 2023 - 7K bytes - Viewed (0) -
src/cmd/go/internal/base/path.go
// Cwd returns the current working directory at the time of the first call. func Cwd() string { cwdOnce.Do(func() { cwd = UncachedCwd() }) return cwd } // ShortPath returns an absolute or relative name for path, whatever is shorter. func ShortPath(path string) string { if rel, err := filepath.Rel(Cwd(), path); err == nil && len(rel) < len(path) { return rel } return path }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 20 19:17:27 UTC 2023 - 2K bytes - Viewed (0) -
src/cmd/go/internal/modload/vendor.go
} else { vendErrorf(r.Old, "is replaced in %s, but not marked as replaced in vendor/modules.txt", base.ShortPath(replacementSource)) } } else if vr != rNewCanonical { vendErrorf(r.Old, "is replaced by %s in %s, but marked as replaced by %s in vendor/modules.txt", describe(rNew), base.ShortPath(replacementSource), describe(vr)) } } } for _, modFile := range modFiles { checkReplace(modFile.Replace)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 24 18:09:22 UTC 2023 - 9.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/naming/from_stack.go
"regexp" goruntime "runtime" "runtime/debug" "strconv" "strings" ) // GetNameFromCallsite walks back through the call stack until we find a caller from outside of the ignoredPackages // it returns back a shortpath/filename:line to aid in identification of this reflector when it starts logging func GetNameFromCallsite(ignoredPackages ...string) string { name := "????" const maxStack = 10 for i := 1; i < maxStack; i++ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 12 01:31:42 UTC 2019 - 2.6K bytes - Viewed (0) -
src/cmd/go/internal/gover/toolchain.go
explain = "; GOTOOLCHAIN=" + Startup.GOTOOLCHAIN } if Startup.AutoFile != "" && (Startup.AutoGoVersion != "" || Startup.AutoToolchain != "") { explain += fmt.Sprintf("; %s sets ", base.ShortPath(Startup.AutoFile)) if Startup.AutoToolchain != "" { explain += "toolchain " + Startup.AutoToolchain } else { explain += "go " + Startup.AutoGoVersion } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 06 23:20:32 UTC 2023 - 3K bytes - Viewed (0)