{"record":{"id":"05bfc2c8baf2c4ef","repo":"Jguer/yay","slug":"invalid-repository","errorCode":null,"errorMessage":"invalid repository","messagePattern":"invalid repository","errorType":"exception","errorClass":"ErrInvalidRepository","httpStatus":null,"severity":"error","filePath":"pkg/download/abs.go","lineNumber":22,"sourceCode":"\t\"context\"\n\t\"errors\"\n\t\"fmt\"\n\t\"io\"\n\t\"net/http\"\n\t\"regexp\"\n\n\t\"github.com/leonelquinteros/gotext\"\n\n\t\"github.com/Jguer/yay/v13/pkg/settings/exe\"\n)\n\nconst (\n\tMaxConcurrentFetch = 20\n\tabsPackageURL      = \"https://gitlab.archlinux.org/archlinux/packaging/packages\"\n)\n\nvar (\n\tErrInvalidRepository  = errors.New(gotext.Get(\"invalid repository\"))\n\tErrABSPackageNotFound = errors.New(gotext.Get(\"package not found in repos\"))\n)\n\ntype regexReplace struct {\n\trepl  string\n\tmatch *regexp.Regexp\n}\n\n// regex replacements for Gitlab URLs\n// info: https://gitlab.archlinux.org/archlinux/devtools/-/blob/6ce666a1669235749c17d5c44d8a24dea4a135da/src/lib/api/gitlab.sh#L84\nvar gitlabRepl = []regexReplace{\n\t{repl: `$1-$2`, match: regexp.MustCompile(`([a-zA-Z0-9]+)\\+([a-zA-Z]+)`)},\n\t{repl: `plus`, match: regexp.MustCompile(`\\+`)},\n\t{repl: `-`, match: regexp.MustCompile(`[^a-zA-Z0-9_\\-.]`)},\n\t{repl: `-`, match: regexp.MustCompile(`[_\\-]{2,}`)},\n\t{repl: `unix-tree`, match: regexp.MustCompile(`^tree$`)},\n}\n","sourceCodeStart":4,"sourceCodeEnd":40,"githubUrl":"https://github.com/Jguer/yay/blob/328f4b4939fb35f38c2f7c7ce3b8638a839bafa5/pkg/download/abs.go#L4-L40","documentation":"Sentinel error (ErrInvalidRepository) from the ABS download package, raised when mapping a package to an Arch Linux source repository URL and the resolved repository name does not correspond to any known repo. It is a guard over the repo-name-to-Gitlab-URL translation: the package's repository field failed to match a valid entry, so no download URL can be constructed.","triggerScenarios":"Thrown at pkg/download/abs.go:22 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the repository name returned for the package (core, extra, multilib, etc.)","Update yay: new or renamed repositories may be unknown to an outdated version","File a bug if a legitimate official repository triggers this error"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"328f4b4939fb35f38c2f7c7ce3b8638a839bafa5","analyzedAt":"2026-09-07T16:45:12.608Z","contentChangedAt":"2026-09-07T16:45:12.608Z","schemaVersion":2},"datasetVersion":"2026-09-16T09:17:16.951Z"}