{"record":{"id":"197f063bd0975e6a","repo":"golang/go","slug":"s-unknown-vcs-q","errorCode":null,"errorMessage":"%s: unknown vcs %q","messagePattern":"(.+?): unknown vcs %q","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/cmd/go/internal/vcs/vcs.go","lineNumber":1062,"sourceCode":"\t\tif err != nil || mmi != metaImport2 {\n\t\t\treturn nil, fmt.Errorf(\"%s and %s disagree about go-import for %s\", resp.URL, url, mmi.Prefix)\n\t\t}\n\t}\n\n\tif err := validateRepoSubDir(mmi.SubDir); err != nil {\n\t\treturn nil, fmt.Errorf(\"%s: invalid subdirectory %q: %v\", resp.URL, mmi.SubDir, err)\n\t}\n\n\tif err := validateRepoRoot(mmi.RepoRoot); err != nil {\n\t\treturn nil, fmt.Errorf(\"%s: invalid repo root %q: %v\", resp.URL, mmi.RepoRoot, err)\n\t}\n\tvar vcs *Cmd\n\tif mmi.VCS == \"mod\" {\n\t\tvcs = vcsMod\n\t} else {\n\t\tvcs = vcsByCmd(mmi.VCS)\n\t\tif vcs == nil {\n\t\t\treturn nil, fmt.Errorf(\"%s: unknown vcs %q\", resp.URL, mmi.VCS)\n\t\t}\n\t}\n\n\tif err := checkGOVCS(vcs, mmi.Prefix); err != nil {\n\t\treturn nil, err\n\t}\n\n\trepoURL, ok := interceptVCSTest(mmi.RepoRoot, vcs, security)\n\tif !ok {\n\t\trepoURL = mmi.RepoRoot\n\t}\n\trr := &RepoRoot{\n\t\tRepo:     repoURL,\n\t\tRoot:     mmi.Prefix,\n\t\tSubDir:   mmi.SubDir,\n\t\tIsCustom: true,\n\t\tVCS:      vcs,\n\t}","sourceCodeStart":1044,"sourceCodeEnd":1080,"githubUrl":"https://github.com/golang/go/blob/b6b368adc57c96c3151d224d172029f233ead2c3/src/cmd/go/internal/vcs/vcs.go#L1044-L1080","documentation":"The matched meta import declares a VCS kind that is neither 'mod' nor matched by vcsByCmd against vcsList (git, hg, svn, fossil, bzr). vcsByCmd returned nil. The %s is resp.URL; %q is the unrecognized VCS string.","triggerScenarios":"A go-import meta tag lists e.g. 'github', 'perforce', or 'cvs' as the VCS field.","commonSituations":"Typo in the meta tag's VCS field; vanity server template bug; an unsupported/bzr-only host after bzr support was deprecated.","solutions":["Set the meta tag VCS to one of: git, hg, svn, fossil, mod","Switch the module to a supported VCS or serve it through a Go module proxy"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"var allowedVCS = map[string]bool{\"git\": true, \"hg\": true, \"svn\": true, \"fossil\": true, \"mod\": true}\nfunc validVCS(v string) bool { return allowedVCS[v] }","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Restrict the go-import VCS field to git/hg/svn/fossil/mod","Double-check the template that renders meta tags for typos"],"tags":["go","modules","vcs","vanity"],"analyzedSha":"b6b368adc57c96c3151d224d172029f233ead2c3","analyzedAt":"2026-08-12T00:22:02.250Z","schemaVersion":2},"datasetVersion":"2026-08-12T08:17:17.861Z"}