Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ShortPath (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/cmd/go/internal/modload/load.go

    		dirstr := fmt.Sprintf("directory %s", base.ShortPath(absDir))
    		if dirstr == "directory ." {
    			dirstr = "current directory"
    		}
    		if inWorkspaceMode() {
    			if mr := findModuleRoot(absDir); mr != "" {
    				return "", fmt.Errorf("%s is contained in a module that is not one of the workspace modules listed in go.work. You can add the module to the workspace using:\n\tgo work use %s", dirstr, base.ShortPath(mr))
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
  7. src/cmd/go/internal/load/pkg.go

    	var pos string
    	var isScanErr bool
    	if scanErr, ok := err.(scanner.ErrorList); ok && len(scanErr) > 0 {
    		isScanErr = true // For stack push/pop below.
    
    		scanPos := scanErr[0].Pos
    		scanPos.Filename = base.ShortPath(scanPos.Filename)
    		pos = scanPos.String()
    		err = errors.New(scanErr[0].Msg)
    	}
    
    	// Report the error on the importing package if the problem is with the import declaration
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/windows/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.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: Tue Jun 04 16:19:04 UTC 2024
    - 195.8K bytes
    - Viewed (0)
Back to top