{"record":{"id":"ca09850ef59d4cc5","repo":"jdx/mise","slug":"packslip-tool-name-is-not-a-project-name-use-gi","errorCode":null,"errorMessage":"packslip:{tool_name} is not a project name; use github.com/owner/repo, owner/repo, or a host such as tool.example.com","messagePattern":"packslip:(.+?) is not a project name; use github\\.com/owner/repo, owner/repo, or a host such as tool\\.example\\.com","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/backend/packslip.rs","lineNumber":138,"sourceCode":"    .iter()\n    .map(|s| s.to_string())\n    .collect()\n}\n\n/// The packslip project name behind a tool name: `github.com/owner/repo`\n/// as given, `owner/repo` with github.com implied, or a vendor's host.\npub(crate) fn project_name(tool_name: &str) -> Result<String> {\n    let name = tool_name.trim_matches('/');\n    let first = name.split('/').next().unwrap_or_default();\n    let project = if first.contains('.') {\n        name.to_string()\n    } else {\n        format!(\"github.com/{name}\")\n    };\n    let forge_without_repo =\n        packslip::model::project_host(&project) == \"github.com\" && repository(&project).is_none();\n    if !packslip::model::valid_project(&project) || forge_without_repo {\n        bail!(\n            \"packslip:{tool_name} is not a project name; use github.com/owner/repo, owner/repo, or a host such as tool.example.com\"\n        );\n    }\n    Ok(project)\n}\n\n/// The release asset a project's packslip is published as.\nfn bundle_name(project: &str) -> String {\n    match repository_subpath(project) {\n        Some(sub) => format!(\"packslip.{}.sigstore.json\", sub.replace('/', \"-\")),\n        None => \"packslip.sigstore.json\".to_string(),\n    }\n}\n\n/// The signed release list of a project on its own domain.\nfn well_known_url(project: &str) -> String {\n    match project.split_once('/') {\n        Some((host, path)) => format!(\"https://{host}/.well-known/packslip/{path}.json\"),","sourceCodeStart":120,"sourceCodeEnd":156,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/backend/packslip.rs#L120-L156","documentation":"packslip backend's project_name validates that the tool name is a valid packslip project reference (a forge host with owner/repo, or a bare host). If packslip::model::valid_project fails, or the project resolves to github.com without a repository part, mise bails explaining the accepted name forms.","triggerScenarios":"Registering/using `packslip:mytool` (a bare name with no owner/repo or host); `packslip:github.com` with no repository; any tool_name where valid_project returns false or the host is github.com but repository() is None.","commonSituations":"Typing a shorthand name as if packslip were a registry (it isn't — it needs a full project reference); copying a `github:`-style bare shorthand into a packslip: URL.","solutions":["Use a full project reference: `packslip:github.com/owner/repo` or `packslip:owner/repo`.","For self-hosted forges, use the host form: `packslip:tool.example.com` (or host/owner/repo).","If you meant a registry shorthand, check `mise ls-remote <tool>` / the registry — the tool may live under a different backend prefix (aqua:, github:, etc.)."],"exampleFix":"// before (mise.toml)\n[tools]\n\"packslip:jdx/hk\" = \"latest\"  # ok if valid; but bare names fail:\n\"packslip:hk\" = \"latest\"\n\n// after\n[tools]\n\"packslip:github.com/jdx/hk\" = \"latest\"","handlingStrategy":"validation","validationCode":"# validate the packslip reference resolves before adding to config\nmise ls-remote 'packslip:github.com/owner/repo'","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Always use full owner/repo (or host) references with packslip:","Test new tool references with `mise ls-remote` before committing config","Remember packslip is a backend, not a name registry"],"tags":["packslip","invalid-name","cli","tool-reference"],"backgroundTag":"invalid-identifier-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"}