{"record":{"id":"d28d3916cdb267c6","repo":"jdx/mise","slug":"packslip-host-requirements-not-met-failures-se","errorCode":null,"errorMessage":"packslip host requirements not met: {failures}; set ignore_requirements=true for this tool to override","messagePattern":"packslip host requirements not met: (.+?); set ignore_requirements=true for this tool to override","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/packslip_requirements.rs","lineNumber":31,"sourceCode":"pub(crate) struct Report {\n    pub(crate) failures: Vec<String>,\n    pub(crate) warnings: Vec<String>,\n}\n\nimpl Report {\n    pub(crate) fn enforce(&self, ignore: bool) -> Result<()> {\n        for warning in &self.warnings {\n            warn!(\"packslip requirement: {warning}\");\n        }\n        if self.failures.is_empty() {\n            return Ok(());\n        }\n        let failures = self.failures.join(\"; \");\n        if ignore {\n            warn!(\"overriding packslip host requirements: {failures}\");\n            Ok(())\n        } else {\n            bail!(\n                \"packslip host requirements not met: {failures}; set ignore_requirements=true for this tool to override\"\n            )\n        }\n    }\n}\n\n/// Compare arbitrarily large numeric components without overflow or semver.\nfn numeric_cmp(actual: &str, min: &str) -> Option<Ordering> {\n    fn parts(s: &str) -> Option<Vec<&str>> {\n        s.split('.')\n            .map(|p| {\n                if p.is_empty() || !p.bytes().all(|c| c.is_ascii_digit()) {\n                    return None;\n                }\n                let p = p.trim_start_matches('0');\n                Some(if p.is_empty() { \"0\" } else { p })\n            })\n            .collect()","sourceCodeStart":13,"sourceCodeEnd":49,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/packslip_requirements.rs#L13-L49","documentation":"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.","triggerScenarios":"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.","commonSituations":"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.","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)."],"exampleFix":"// before (mise.toml)\n[tools]\n\"packslip:org/tool\" = \"1.2.0\"\n// after: opt in to overriding host requirements\n[tools]\n\"packslip:org/tool\" = { version = \"1.2.0\", ignore_requirements = true }","handlingStrategy":"validation","validationCode":"// pre-flight: verify the tool's host requirements before install\nconst reqs = tool.manifest.host_requirements || [];\nconst unmet = reqs.filter(r => !checkHostRequirement(r));\nif (unmet.length && !tool.config.ignore_requirements) {\n  throw new Error(`unmet packslip requirements: ${unmet.join(\"; \")}`);\n}","typeGuard":"function requirementsMet(tool) {\n  return tool.config?.ignore_requirements === true ||\n    (tool.manifest?.host_requirements ?? []).every(checkHostRequirement);\n}","tryCatchPattern":"try {\n  installPackslipTool(tool);\n} catch (e) {\n  if (String(e).includes(\"host requirements not met\")) {\n    console.error(\"Install the missing prerequisites named in the error, or set ignore_requirements=true deliberately.\");\n    process.exitCode = 1;\n  } else throw e;\n}","preventionTips":["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."],"tags":["packslip","host-requirements","dependency-missing","installation"],"backgroundTag":"missing-dependency","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"}