jdx/mise · error
vfox plugin artifact must be portable
Error message
vfox plugin artifact must be portable
What it means
vfox plugin packslip artifacts must be portable: they may not constrain the artifact to specific os, arch, or libc values. A single vfox plugin archive is expected to work on any platform mise runs it on. An artifact that sets any of these platform fields is rejected.
Solutions
- Remove the os, arch, and libc fields from the vfox plugin artifact so it is portable
- If per-platform payloads are truly needed, publish one portable vfox plugin per release and move platform logic into the Lua plugin itself
- Pin to an earlier release with a portable artifact
Example fix
// before
{ "extensions": { "mise": { "plugin": "vfox" } }, "os": ["linux"], "arch": ["amd64"], "libc": "glibc" }
// after
{ "extensions": { "mise": { "plugin": "vfox" } } } Defensive patterns
Strategy: validation
Validate before calling
if (a?.extensions?.mise?.plugin === 'vfox' && (a.os || a.arch || a.libc)) throw new Error('vfox artifact must be portable'); Type guard
const isPortableVfox = (a) => a?.extensions?.mise?.plugin === 'vfox' && a.os == null && a.arch == null && a.libc == null;
Prevention
- Keep platform fields only on native binary artifacts
- Document that vfox plugin artifacts are inherently portable
- Add manifest linting that flags os/arch/libc on plugin artifacts
When it happens
Trigger: Installing a tool whose packslip artifact declares vfox plugin but also sets a non-null os, arch, or libc field (e.g. os: ["linux"], arch: ["amd64"], libc: "glibc").
Common situations: Authors templating plugin artifacts from platform-specific binary artifacts and leaving the platform fields in place; upstream releases that started per-platform packaging of what used to be a portable plugin.
Understand the failure class
Background: Conflicting config options: "cannot be used together" — configuration validation errors across open-source libraries — this error's family across 162 libraries.
Related errors
- packslip artifact must declare extensions.mise.plugin = vfox
- vfox plugin artifacts must not declare executables
- vfox plugin artifacts must not declare host requirements
- packslip plugin sources require the vfox plugin type
- vfox plugin artifacts currently require tar.gz format
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/df37829b1e928524.
Report an issue: GitHub.
Appendix: source
Thrown at src/plugins/packslip.rs:191
}
Ok(())
}
pub(crate) fn validate_artifact(artifact: &packslip::model::Artifact) -> Result<()> {
ensure!(
artifact
.extensions
.get("mise")
.and_then(|v| v.get("plugin"))
.and_then(|v| v.as_str())
== Some("vfox"),
"packslip artifact must declare extensions.mise.plugin = vfox"
);
ensure!(
artifact.bin.is_empty(),
"vfox plugin artifacts must not declare executables"
);
ensure!(
artifact.os.is_none() && artifact.arch.is_none() && artifact.libc.is_none(),
"vfox plugin artifact must be portable"
);
ensure!(
artifact.requires.is_none(),
"vfox plugin artifacts must not declare host requirements"
);
ensure!(
matches!(artifact.format.as_deref(), Some("tar.gz" | "tgz")),
"vfox plugin artifacts currently require tar.gz format"
);
Ok(())
}
/// Reject links and special files before extraction, including links whose
/// targets might otherwise be resolved while unpacking a later archive entry.
pub(crate) fn validate_archive(path: &Path) -> Result<()> {
let reader = flate2::read::GzDecoder::new(std::fs::File::open(path)?);View on GitHub (pinned to 533346cc37)