- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for ShortPath (0.14 sec)
-
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) -
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) -
src/cmd/go/internal/generate/generate.go
} base.SetExitStatus(1) } }() g.dir, g.file = filepath.Split(g.path) g.dir = filepath.Clean(g.dir) // No final separator please. if cfg.BuildV { fmt.Fprintf(os.Stderr, "%s\n", base.ShortPath(g.path)) } // Scan for lines that start "//go:generate". // Can't use bufio.Scanner because it can't handle long lines, // which are likely to appear when using generate. input := bufio.NewReader(g.r)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 29 19:39:24 UTC 2024 - 14.5K bytes - Viewed (0) -
src/cmd/go/internal/modload/modfile.go
// overlay, locks the file while reading, and applies fix, if applicable. func ReadModFile(gomod string, fix modfile.VersionFixer) (data []byte, f *modfile.File, err error) { gomod = base.ShortPath(gomod) // use short path in any errors if gomodActual, ok := fsys.OverlayPath(gomod); ok { // Don't lock go.mod if it's part of the overlay. // On Plan 9, locking requires chmod, and we don't want to modify any file
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 26 17:53:40 UTC 2023 - 26.7K bytes - Viewed (0) -
src/cmd/go/internal/modload/init.go
} seen[modRoot] = true modRoots = append(modRoots, modRoot) } for _, g := range wf.Godebug { if err := CheckGodebug("godebug", g.Key, g.Value); err != nil { return nil, nil, fmt.Errorf("error loading go.work:\n%s:%d: %w", base.ShortPath(path), g.Syntax.Start.Line, err) } }
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/go/internal/workcmd/edit.go
if !anyFlags { base.Fatalf("go: no flags specified (see 'go help work edit').") } workFile, err := modload.ReadWorkFile(gowork) if err != nil { base.Fatalf("go: errors parsing %s:\n%s", base.ShortPath(gowork), err) } if *editGo == "none" { workFile.DropGoStmt() } else if *editGo != "" { if err := workFile.AddGoStmt(*editGo); err != nil { base.Fatalf("go: internal error: %v", err) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 11K bytes - Viewed (0) -
src/cmd/go/internal/modcmd/edit.go
} data, err := lockedfile.Read(gomod) if err != nil { base.Fatal(err) } modFile, err := modfile.Parse(gomod, data, nil) if err != nil { base.Fatalf("go: errors parsing %s:\n%s", base.ShortPath(gomod), err) } if *editModule != "" { modFile.AddModuleStmt(*editModule) } if *editGo == "none" { modFile.DropGoStmt() } else if *editGo != "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 17.2K bytes - Viewed (0) -
src/syscall/zsyscall_windows.go
if r1 == 0 { err = errnoErr(e1) } return } func GetShortPathName(longpath *uint16, shortpath *uint16, buflen uint32) (n uint32, err error) { r0, _, e1 := Syscall(procGetShortPathNameW.Addr(), 3, uintptr(unsafe.Pointer(longpath)), uintptr(unsafe.Pointer(shortpath)), uintptr(buflen)) n = uint32(r0) if n == 0 { err = errnoErr(e1) } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 11:49:46 UTC 2024 - 56.3K bytes - Viewed (0) -
src/cmd/go/internal/work/shell.go
// prefixes, the only way to find them is to look. // This doesn't always produce a relative path -- // /foo is shorter than ../../.., for example. if reldir := base.ShortPath(dir); reldir != dir { out = replacePrefix(out, dir, reldir) if filepath.Separator == '\\' { // Don't know why, sometimes this comes out with slashes, not backslashes. wdir := strings.ReplaceAll(dir, "\\", "/")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 19.8K bytes - Viewed (0) -
src/cmd/go/internal/toolchain/select.go
if toolVers == "" || (!strings.HasPrefix(toolchain, "go") && !strings.Contains(toolchain, "-go")) { counterErrorsInvalidToolchainInFile.Inc() base.Fatalf("invalid toolchain %q in %s", toolchain, base.ShortPath(file)) } if gover.Compare(toolVers, minVers) > 0 { gotoolchain = toolchain minVers = toolVers gover.Startup.AutoToolchain = toolchain } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:25:05 UTC 2024 - 23.4K bytes - Viewed (0)