jdx/mise · error
packslip plugin sources currently require a GitHub…
Error message
packslip plugin sources currently require a GitHub repository
What it means
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.
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).
Example fix
// before [tools] mytool = "packslip:gitlab.com/acme/mytool" // after [tools] mytool = "packslip:github.com/acme/mytool" # or use aqua:/github: backend
Defensive patterns
Strategy: validation
Validate before calling
fn is_valid_packslip_source(src: &str) -> bool {
src.strip_prefix("packslip:")
.map_or(false, |rest| {
let project = rest.split('#').next().unwrap_or("");
project.starts_with("github.com/") && project.splitn(3, '/').count() == 3
})
} Try / catch
match mise_use("packslip:foo") {
Err(e) if e.to_string().contains("require a GitHub repository") => {
eprintln!("use packslip:github.com/org/repo or switch to aqua:/github: backend");
}
other => other?,
} Prevention
- 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
When it happens
Trigger: 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.
Common situations: 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.
Understand the failure class
Background: "Invalid URL" errors: why new URL(), URI.parse, and reqwest::Url reject your string — missing scheme, whitespace, and bad path format — this error's family across 39 libraries.
Related errors
- packslip plugin version must not be empty
- an exec entry with no command
- archive does not contain registry entries
- asdf plugin ' ' exists but ' ' is not available or the…
- is not installed
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/796cdc12a97fa847.
Report an issue: GitHub.
Appendix: source
Thrown at src/plugins/packslip.rs:33
use crate::toolset::{ResolveOptions, ToolRequest, ToolSource, Toolset};
use crate::ui::progress_report::{QuietReport, SingleReport};
const STATE_FILE: &str = ".mise-packslip-plugin.json";
#[derive(Debug, Clone, Serialize, Deserialize)]
pub(crate) struct Source {
project: String,
request: String,
}
impl Source {
pub(crate) fn parse(value: &str) -> Result<Option<Self>> {
let Some(value) = value.strip_prefix("packslip:") else {
return Ok(None);
};
let (project, request) = value.split_once('#').unwrap_or((value, "latest"));
let project = project_name(project)?;
ensure!(
project.starts_with("github.com/") && packslip::model::repository(&project).is_some(),
"packslip plugin sources currently require a GitHub repository"
);
ensure!(
!request.is_empty(),
"packslip plugin version must not be empty"
);
Ok(Some(Self {
project,
request: request.to_owned(),
}))
}
pub(crate) fn url(&self) -> String {
format!("packslip:{}#{}", self.project, self.request)
}
pub(crate) fn with_version(mut self, version: Option<String>) -> Self {View on GitHub (pinned to 533346cc37)