jdx/mise · error
packslip host requirements not met
Error message
packslip host requirements not met: {failures}; set ignore_requirements=true for this tool to override What it means
Raised by packslip_requirements::enforce when the host machine does not satisfy the requirements declared by a packslip tool (each unmet requirement contributes a failure string, all joined with ';'). The check is a safety gate — a tool that needs e.g. a specific verifier or key setup won't work correctly on this host. The only bypass is opt-in per tool via ignore_requirements=true, which then only warns.
Solutions
- Fix the listed host requirements (the failures string names each one — install the missing dependency or configure it).
- If you understand and accept the risk, set ignore_requirements=true for this tool in its configuration to bypass the check (a warning is printed instead).
- Run on a host that meets the tool's declared requirements (e.g. a different CI image).
Example fix
// before (mise.toml)
[tools]
"packslip:org/tool" = "1.2.0"
// after: opt in to overriding host requirements
[tools]
"packslip:org/tool" = { version = "1.2.0", ignore_requirements = true } Defensive patterns
Strategy: validation
Validate before calling
// pre-flight: verify the tool's host requirements before install
const reqs = tool.manifest.host_requirements || [];
const unmet = reqs.filter(r => !checkHostRequirement(r));
if (unmet.length && !tool.config.ignore_requirements) {
throw new Error(`unmet packslip requirements: ${unmet.join("; ")}`);
} Type guard
function requirementsMet(tool) {
return tool.config?.ignore_requirements === true ||
(tool.manifest?.host_requirements ?? []).every(checkHostRequirement);
} Try / catch
try {
installPackslipTool(tool);
} catch (e) {
if (String(e).includes("host requirements not met")) {
console.error("Install the missing prerequisites named in the error, or set ignore_requirements=true deliberately.");
process.exitCode = 1;
} else throw e;
} Prevention
- Read the tool's declared host requirements before installing on a new machine or CI image.
- Keep CI containers provisioned with the prerequisites the tools declare.
- Only use ignore_requirements=true when you understand exactly which requirement is being waived.
When it happens
Trigger: Installing or running a packslip-backed tool whose release manifest declares host requirements (self.failures is non-empty) while the `ignore` flag is false — i.e. during enforce() with unmet requirements and no ignore_requirements=true setting for that tool.
Common situations: Installing a tool on a machine lacking a required binary/library; a required signing verifier or keyring is not set up; running in a minimal CI container that misses host prerequisites the tool declares.
Understand the failure class
Background: "not installed", "pip install", "required for": how missing-dependency errors surface across open-source libraries — this error's family across 34 libraries.
Related errors
- an exec entry with no command
- at least one bin path should exist
- brew-cask is not available
- brew: : package lookup supports macOS arm64 and Linux…
- cli-spec entry names
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/d28d3916cdb267c6.
Report an issue: GitHub.
Appendix: source
Thrown at src/packslip_requirements.rs:31
pub(crate) struct Report {
pub(crate) failures: Vec<String>,
pub(crate) warnings: Vec<String>,
}
impl Report {
pub(crate) fn enforce(&self, ignore: bool) -> Result<()> {
for warning in &self.warnings {
warn!("packslip requirement: {warning}");
}
if self.failures.is_empty() {
return Ok(());
}
let failures = self.failures.join("; ");
if ignore {
warn!("overriding packslip host requirements: {failures}");
Ok(())
} else {
bail!(
"packslip host requirements not met: {failures}; set ignore_requirements=true for this tool to override"
)
}
}
}
/// Compare arbitrarily large numeric components without overflow or semver.
fn numeric_cmp(actual: &str, min: &str) -> Option<Ordering> {
fn parts(s: &str) -> Option<Vec<&str>> {
s.split('.')
.map(|p| {
if p.is_empty() || !p.bytes().all(|c| c.is_ascii_digit()) {
return None;
}
let p = p.trim_start_matches('0');
Some(if p.is_empty() { "0" } else { p })
})
.collect()View on GitHub (pinned to 533346cc37)