jdx/mise · error

packslip: is not a project name; use github.com/owner/repo…

Error message

packslip:{tool_name} is not a project name; use github.com/owner/repo, owner/repo, or a host such as tool.example.com

What it means

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.

Solutions

  1. Use a full project reference: `packslip:github.com/owner/repo` or `packslip:owner/repo`.
  2. For self-hosted forges, use the host form: `packslip:tool.example.com` (or host/owner/repo).
  3. 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.).

Example fix

// before (mise.toml)
[tools]
"packslip:jdx/hk" = "latest"  # ok if valid; but bare names fail:
"packslip:hk" = "latest"

// after
[tools]
"packslip:github.com/jdx/hk" = "latest"
Defensive patterns

Strategy: validation

Validate before calling

# validate the packslip reference resolves before adding to config
mise ls-remote 'packslip:github.com/owner/repo'

Prevention

When it happens

Trigger: 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.

Common situations: 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.

Understand the failure class

Background: "invalid id" errors: invalid identifier format — why libraries reject IDs before lookup, and how to fix them — this error's family across 37 libraries.

Related errors


AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17). Data as JSON: /api/errors/ca09850ef59d4cc5. Report an issue: GitHub.

Appendix: source

Thrown at src/backend/packslip.rs:138

    .iter()
    .map(|s| s.to_string())
    .collect()
}

/// The packslip project name behind a tool name: `github.com/owner/repo`
/// as given, `owner/repo` with github.com implied, or a vendor's host.
pub(crate) fn project_name(tool_name: &str) -> Result<String> {
    let name = tool_name.trim_matches('/');
    let first = name.split('/').next().unwrap_or_default();
    let project = if first.contains('.') {
        name.to_string()
    } else {
        format!("github.com/{name}")
    };
    let forge_without_repo =
        packslip::model::project_host(&project) == "github.com" && repository(&project).is_none();
    if !packslip::model::valid_project(&project) || forge_without_repo {
        bail!(
            "packslip:{tool_name} is not a project name; use github.com/owner/repo, owner/repo, or a host such as tool.example.com"
        );
    }
    Ok(project)
}

/// The release asset a project's packslip is published as.
fn bundle_name(project: &str) -> String {
    match repository_subpath(project) {
        Some(sub) => format!("packslip.{}.sigstore.json", sub.replace('/', "-")),
        None => "packslip.sigstore.json".to_string(),
    }
}

/// The signed release list of a project on its own domain.
fn well_known_url(project: &str) -> String {
    match project.split_once('/') {
        Some((host, path)) => format!("https://{host}/.well-known/packslip/{path}.json"),

View on GitHub (pinned to 533346cc37)