jdx/mise · error
content-level SLSA verification stripped all components…
Error message
content-level SLSA verification stripped all components from archive path: {} What it means
Before slicing off the configured number of leading path components, mise checks that strip_components is not larger than the number of components in the archive entry's path. If it is, every component would be removed and no usable installed path remains, so verification aborts for that entry.
Solutions
- Reduce strip_components in the registry/backend recipe to a value <= the entry depth
- Inspect the archive (`tar tf`) to determine its actual nesting depth and match the recipe to it
- Pin to an upstream version matching the layout the recipe was written for
- If only some entries are shallow, ask upstream to normalize archive layout
Example fix
// before: archive has entries like `pkg-1.0/bin/tool` (3 components), recipe strips 2 ok; // but a sibling archive `bin/tool` (2 components) fails strip_components = 2 // after strip_components = 1
Defensive patterns
Strategy: validation
Validate before calling
depth=$(tar -tzf tool.tar.gz | awk -F/ '{print NF}' | sort -n | head -1); echo "min depth: $depth" # strip_components must be < depth Prevention
- Match strip_components to the archive's minimum entry depth
- Re-check recipes whenever upstream changes archive layout
- Pin to versions whose archive layout the recipe was validated against
When it happens
Trigger: Content-level SLSA verification where the recipe's strip_components value exceeds the depth of an archive entry's path (e.g. strip_components=2 on an entry like `file.txt`).
Common situations: Archive layout changed upstream so top-level directories disappeared; recipe written for nested archives applied to a flat archive; mixed-depth entries where only shallow entries fail.
Understand the failure class
Background: "Must be a positive integer", "Invalid value", "Unsupported": the invalid-argument-value error family, when a library rejects the value you pass — this error's family across 35 libraries.
Related errors
- content-level SLSA verification does not support…
- content-level SLSA verification found duplicate installed…
- content-level SLSA verification found no regular files in…
- content-level SLSA verification only supports archive…
- content-level SLSA verification only supports…
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/d20638d3609487d0.
Report an issue: GitHub.
Appendix: source
Thrown at src/file.rs:2777
fn normalize_archive_content_path(path: &Path, strip_components: usize) -> Result<String> {
let mut parts = Vec::new();
for component in skip_curdir_components(path) {
match component {
std::path::Component::Normal(part) => parts.push(part.to_string_lossy().to_string()),
std::path::Component::CurDir => {}
std::path::Component::ParentDir
| std::path::Component::RootDir
| std::path::Component::Prefix(_) => {
bail!(
"content-level SLSA verification rejected unsafe archive path: {}",
path.display()
)
}
}
}
if strip_components > parts.len() {
bail!(
"content-level SLSA verification stripped all components from archive path: {}",
path.display()
);
}
let parts = &parts[strip_components..];
if parts.is_empty() {
bail!(
"content-level SLSA verification stripped all components from archive path: {}",
path.display()
);
}
Ok(parts.join("/"))
}
#[cfg(test)]
mod tests {
use pretty_assertions::assert_eq;
View on GitHub (pinned to 533346cc37)