- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for isAbs (0.04 sec)
-
src/go/build/build.go
return f(s) } return filepath.SplitList(s) } // isAbsPath calls ctxt.IsAbsPath (if not nil) or else filepath.IsAbs. func (ctxt *Context) isAbsPath(path string) bool { if f := ctxt.IsAbsPath; f != nil { return f(path) } return filepath.IsAbs(path) } // isDir calls ctxt.IsDir (if not nil) or else uses os.Stat. func (ctxt *Context) isDir(path string) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 62.3K bytes - Viewed (0) -
src/cmd/link/internal/ld/lib.go
// are now suffixed by "_64". Even under "-maix64" multilib directory // "crtcxa.o" is 32-bit. crtcxa := getPathFile("crtcxa_64.o") if !filepath.IsAbs(crtcxa) { crtcxa = getPathFile("crtcxa.o") } crtdbase := getPathFile("crtdbase_64.o") if !filepath.IsAbs(crtdbase) { crtdbase = getPathFile("crtdbase.o") } argv = append(argv, crtcxa) argv = append(argv, crtdbase) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 18:45:27 UTC 2024 - 88.6K bytes - Viewed (0) -
src/cmd/go/internal/test/test.go
if testO != "" { target = testO if testODir { if filepath.IsAbs(target) { target = filepath.Join(target, testBinary+cfg.ExeSuffix) } else { target = filepath.Join(base.Cwd(), target, testBinary+cfg.ExeSuffix) } } else { if base.IsNull(target) { isNull = true } else if !filepath.IsAbs(target) { target = filepath.Join(base.Cwd(), target) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 71.9K bytes - Viewed (0) -
src/cmd/go/internal/modload/load.go
// module. Verify that before we walk the filesystem: a filesystem // walk in a directory like /var or /etc can be very expensive! dir := filepath.Dir(filepath.Clean(m.Pattern()[:i+3])) absDir := dir if !filepath.IsAbs(dir) { absDir = filepath.Join(base.Cwd(), dir) } modRoot := findModuleRoot(absDir) found := false for _, mainModuleRoot := range modRoots { if mainModuleRoot == modRoot { found = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 84K bytes - Viewed (0) -
src/cmd/go/internal/modload/init.go
if RootMode == NoRoot { return "" } switch gowork := cfg.Getenv("GOWORK"); gowork { case "off": return "" case "", "auto": return findWorkspaceFile(wd) default: if !filepath.IsAbs(gowork) { base.Fatalf("go: invalid GOWORK: not an absolute path") } return gowork } } // WorkFilePath returns the absolute path of the go.work file, or "" if not in
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 18:36:30 UTC 2024 - 69.8K bytes - Viewed (0) -
src/cmd/dist/build.go
// suffice here, but that requires deviating from the infrastructure // provided by `run`. gitDir := chomp(run(goroot, 0, "git", "rev-parse", "--git-dir")) if !filepath.IsAbs(gitDir) { gitDir = filepath.Join(goroot, gitDir) } return isdir(gitDir) } /* * Initial tree setup. */ // The old tools that no longer live in $GOBIN or $GOROOT/bin.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 18:34:40 UTC 2024 - 54K bytes - Viewed (0) -
src/cmd/dist/test.go
// and os.Stderr. func (t *tester) dirCmd(dir string, cmdline ...interface{}) *exec.Cmd { bin, args := flattenCmdline(cmdline) cmd := exec.Command(bin, args...) if filepath.IsAbs(dir) { setDir(cmd, dir) } else { setDir(cmd, filepath.Join(goroot, dir)) } cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr if vflag > 1 { errprintf("%s\n", strings.Join(cmd.Args, " "))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 16:01:35 UTC 2024 - 50K bytes - Viewed (0) -
src/cmd/go/internal/modget/get.go
}) } } func (r *resolver) performLocalQueries(ctx context.Context) { for _, q := range r.localQueries { q.pathOnce(q.pattern, func() pathSet { absDetail := "" if !filepath.IsAbs(q.pattern) { if absPath, err := filepath.Abs(q.pattern); err == nil { absDetail = fmt.Sprintf(" (%s)", absPath) } } // Absolute paths like C:\foo and relative paths like ../foo... are
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 18:26:32 UTC 2024 - 66.5K bytes - Viewed (0) -
src/cmd/go/go_test.go
// removed. When the test completes, the file or directory will be // removed if it exists. func (tg *testgoData) creatingTemp(path string) { tg.t.Helper() if filepath.IsAbs(path) && !strings.HasPrefix(path, tg.tempdir) { tg.t.Fatalf("internal testsuite error: creatingTemp(%q) with absolute path not in temporary directory", path) } tg.must(robustio.RemoveAll(path))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 81.1K bytes - Viewed (0)