type Cmd …
type Status …
var VCSTestRepoURL …
var VCSTestHosts …
var VCSTestIsLocalHost …
var defaultSecureScheme …
func (v *Cmd) IsSecure(repo string) bool { … }
func (v *Cmd) isSecureScheme(scheme string) bool { … }
type tagCmd …
var vcsList …
var vcsMod …
func vcsByCmd(cmd string) *Cmd { … }
var vcsHg …
func hgRemoteRepo(vcsHg *Cmd, rootDir string) (remoteRepo string, err error) { … }
func hgStatus(vcsHg *Cmd, rootDir string) (Status, error) { … }
func parseRevTime(out []byte) (string, time.Time, error) { … }
var vcsGit …
var scpSyntaxRe …
func gitRemoteRepo(vcsGit *Cmd, rootDir string) (remoteRepo string, err error) { … }
func gitStatus(vcsGit *Cmd, rootDir string) (Status, error) { … }
var vcsBzr …
func bzrRemoteRepo(vcsBzr *Cmd, rootDir string) (remoteRepo string, err error) { … }
func bzrResolveRepo(vcsBzr *Cmd, rootDir, remoteRepo string) (realRepo string, err error) { … }
func bzrStatus(vcsBzr *Cmd, rootDir string) (Status, error) { … }
var vcsSvn …
func svnRemoteRepo(vcsSvn *Cmd, rootDir string) (remoteRepo string, err error) { … }
const fossilRepoName …
var vcsFossil …
func fossilRemoteRepo(vcsFossil *Cmd, rootDir string) (remoteRepo string, err error) { … }
var errFossilInfo …
func fossilStatus(vcsFossil *Cmd, rootDir string) (Status, error) { … }
func (v *Cmd) String() string { … }
func (v *Cmd) run(dir string, cmd string, keyval ...string) error { … }
func (v *Cmd) runVerboseOnly(dir string, cmd string, keyval ...string) error { … }
func (v *Cmd) runOutput(dir string, cmd string, keyval ...string) ([]byte, error) { … }
func (v *Cmd) runOutputVerboseOnly(dir string, cmd string, keyval ...string) ([]byte, error) { … }
func (v *Cmd) run1(dir string, cmdline string, keyval []string, verbose bool) ([]byte, error) { … }
func (v *Cmd) Ping(scheme, repo string) error { … }
func (v *Cmd) Create(dir, repo string) error { … }
func (v *Cmd) Download(dir string) error { … }
func (v *Cmd) Tags(dir string) ([]string, error) { … }
func (v *Cmd) TagSync(dir, tag string) error { … }
type vcsPath …
func FromDir(dir, srcRoot string, allowNesting bool) (repoDir string, vcsCmd *Cmd, err error) { … }
func isVCSRoot(dir string, rootNames []rootName) bool { … }
type rootName …
type vcsNotFoundError …
func (e *vcsNotFoundError) Error() string { … }
func (e *vcsNotFoundError) Is(err error) bool { … }
type govcsRule …
type govcsConfig …
func parseGOVCS(s string) (govcsConfig, error) { … }
func (c *govcsConfig) allow(path string, private bool, vcs string) bool { … }
var govcs …
var govcsErr …
var govcsOnce …
var defaultGOVCS …
func checkGOVCS(vcs *Cmd, root string) error { … }
type RepoRoot …
func httpPrefix(s string) string { … }
type ModuleMode …
const IgnoreMod …
const PreferMod …
func RepoRootForImportPath(importPath string, mod ModuleMode, security web.SecurityMode) (*RepoRoot, error) { … }
var errUnknownSite …
func repoRootFromVCSPaths(importPath string, security web.SecurityMode, vcsPaths []*vcsPath) (*RepoRoot, error) { … }
func interceptVCSTest(repo string, vcs *Cmd, security web.SecurityMode) (repoURL string, ok bool) { … }
func urlForImportPath(importPath string) (*urlpkg.URL, error) { … }
func repoRootForImportDynamic(importPath string, mod ModuleMode, security web.SecurityMode) (*RepoRoot, error) { … }
func validateRepoRoot(repoRoot string) error { … }
var fetchGroup …
var fetchCacheMu …
var fetchCache …
func metaImportsForPrefix(importPrefix string, mod ModuleMode, security web.SecurityMode) (*urlpkg.URL, []metaImport, error) { … }
type fetchResult …
type metaImport …
type ImportMismatchError …
func (m ImportMismatchError) Error() string { … }
func matchGoImport(imports []metaImport, importPath string) (metaImport, error) { … }
func expand(match map[string]string, s string) string { … }
var vcsPaths …
var vcsPathsAfterDynamic …
func noVCSSuffix(match map[string]string) error { … }
func launchpadVCS(match map[string]string) error { … }
type importError …
func importErrorf(path, format string, args ...any) error { … }
func (e *importError) Error() string { … }
func (e *importError) Unwrap() error { … }
func (e *importError) ImportPath() string { … }