- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for ShortPath (0.11 sec)
-
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/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/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)