{"record":{"id":"796cdc12a97fa847","repo":"jdx/mise","slug":"packslip-plugin-sources-currently-require-a-github","errorCode":null,"errorMessage":"packslip plugin sources currently require a GitHub repository","messagePattern":"packslip plugin sources currently require a GitHub repository","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/plugins/packslip.rs","lineNumber":33,"sourceCode":"use crate::toolset::{ResolveOptions, ToolRequest, ToolSource, Toolset};\nuse crate::ui::progress_report::{QuietReport, SingleReport};\n\nconst STATE_FILE: &str = \".mise-packslip-plugin.json\";\n\n#[derive(Debug, Clone, Serialize, Deserialize)]\npub(crate) struct Source {\n    project: String,\n    request: String,\n}\n\nimpl Source {\n    pub(crate) fn parse(value: &str) -> Result<Option<Self>> {\n        let Some(value) = value.strip_prefix(\"packslip:\") else {\n            return Ok(None);\n        };\n        let (project, request) = value.split_once('#').unwrap_or((value, \"latest\"));\n        let project = project_name(project)?;\n        ensure!(\n            project.starts_with(\"github.com/\") && packslip::model::repository(&project).is_some(),\n            \"packslip plugin sources currently require a GitHub repository\"\n        );\n        ensure!(\n            !request.is_empty(),\n            \"packslip plugin version must not be empty\"\n        );\n        Ok(Some(Self {\n            project,\n            request: request.to_owned(),\n        }))\n    }\n\n    pub(crate) fn url(&self) -> String {\n        format!(\"packslip:{}#{}\", self.project, self.request)\n    }\n\n    pub(crate) fn with_version(mut self, version: Option<String>) -> Self {","sourceCodeStart":15,"sourceCodeEnd":51,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/plugins/packslip.rs#L15-L51","documentation":"Packslip plugin sources in mise must reference a known GitHub repository. PackslipSource::parse (src/plugins/packslip.rs:33) strips the `packslip:` prefix, then requires the project to start with `github.com/` AND resolve via packslip::model::repository — i.e. the project must match a repository known to packslip's model. Anything else (other hosts, bare org names, unknown repos) is rejected with this error.","triggerScenarios":"Writing a tool request like `mise use packslip:gitlab.com/foo/bar`, `packslip:foo` (no host), or `packslip:github.com/org/not-a-packslip-repo` where repository() returns None. Also occurs with typos in the org/repo slug.","commonSituations":"Users assuming packslip supports arbitrary Git hosts; copying an aqua/github source slug into a packslip: source; misreading packslip docs so the repo name is misspelled; a repo that exists on GitHub but isn't part of packslip's supported set.","solutions":["Use the full GitHub path of a packslip-supported repository: `mise use packslip:github.com/<org>/<repo>`.","Check the repo is actually in packslip's supported repository list (mise.jdx.dev dev-tools/backends/packslip docs) — only recognized repos are accepted.","If the tool isn't packslip-supported, install it via another backend: `mise use aqua:org/repo` or `mise use github:org/repo`.","Fix typos in the org/repo slug and drop any shorthand (packslip wants the full github.com/owner/repo form)."],"exampleFix":"// before\n[tools]\nmytool = \"packslip:gitlab.com/acme/mytool\"\n// after\n[tools]\nmytool = \"packslip:github.com/acme/mytool\"  # or use aqua:/github: backend","handlingStrategy":"validation","validationCode":"fn is_valid_packslip_source(src: &str) -> bool {\n  src.strip_prefix(\"packslip:\")\n    .map_or(false, |rest| {\n      let project = rest.split('#').next().unwrap_or(\"\");\n      project.starts_with(\"github.com/\") && project.splitn(3, '/').count() == 3\n    })\n}","typeGuard":null,"tryCatchPattern":"match mise_use(\"packslip:foo\") {\n  Err(e) if e.to_string().contains(\"require a GitHub repository\") => {\n    eprintln!(\"use packslip:github.com/org/repo or switch to aqua:/github: backend\");\n  }\n  other => other?,\n}","preventionTips":["Always use the full github.com/owner/repo form for packslip sources","Verify the repo is packslip-supported before writing the source","Use aqua:/github: backends for non-packslip tools"],"tags":["registry","packslip","plugin","url-format"],"backgroundTag":"invalid-url-format","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}