Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for vcsErrorf (0.29 sec)

  1. src/cmd/go/internal/modfetch/codehost/vcs.go

    // distinguished error for “repo not found” and treat everything else
    // as terminal.)
    type VCSError struct {
    	Err error
    }
    
    func (e *VCSError) Error() string { return e.Err.Error() }
    
    func (e *VCSError) Unwrap() error { return e.Err }
    
    func vcsErrorf(format string, a ...any) error {
    	return &VCSError{Err: fmt.Errorf(format, a...)}
    }
    
    type vcsCacheKey struct {
    	vcs    string
    	remote string
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modfetch/codehost/svn.go

    			Date     string `xml:"date"`
    		} `xml:"logentry"`
    	}
    	if err := xml.Unmarshal([]byte(out), &log); err != nil {
    		return nil, vcsErrorf("unexpected response from svn log --xml: %v\n%s", err, out)
    	}
    
    	t, err := time.Parse(time.RFC3339, log.Logentry.Date)
    	if err != nil {
    		return nil, vcsErrorf("unexpected response from svn log --xml: %v\n%s", err, out)
    	}
    
    	info := &RevInfo{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 02:47:12 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modfetch/repo.go

    }
    
    func lookupCodeRepo(ctx context.Context, rr *vcs.RepoRoot) (codehost.Repo, error) {
    	code, err := codehost.NewRepo(ctx, rr.VCS.Cmd, rr.Repo)
    	if err != nil {
    		if _, ok := err.(*codehost.VCSError); ok {
    			return nil, err
    		}
    		return nil, fmt.Errorf("lookup %s: %v", rr.Root, err)
    	}
    	return code, nil
    }
    
    // A loggingRepo is a wrapper around an underlying Repo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 16:36:19 UTC 2023
    - 15.2K bytes
    - Viewed (0)
Back to top