jdx/mise · error

evaluating third-party tap definitions is only supported…

Error message

evaluating third-party tap definitions is only supported inside the Linux or macOS process sandbox

What it means

mise's brew tap metadata extraction evaluates third-party Homebrew tap formula/cask definitions with a bundled Ruby shim. That evaluation runs inside a process sandbox, but the sandbox is only implemented on Linux and macOS. On any other platform this error is raised instead, refusing to evaluate untrusted tap code unsandboxed.

Solutions

  1. Run the operation on Linux or macOS where the process sandbox is supported
  2. Use mise inside WSL or a Linux container/VM on that machine
  3. Avoid the third-party tap and install the tool via another backend (e.g. aqua:, github:)

Example fix

// before (mise.toml)
[tools]
"brew:sometap/formula" = "1.2"
// after
[tools]
"github:owner/repo" = "1.2"
Defensive patterns

Strategy: fallback

Validate before calling

if cfg!(not(any(target_os = "linux", target_os = "macos"))) {
    // skip third-party tap metadata path; use another backend or a Linux/VM host
}

Type guard

fn supports_brew_tap_sandbox() -> bool {
    cfg!(any(target_os = "linux", target_os = "macos"))
}

Prevention

When it happens

Trigger: Calling formula_from_ruby or cask_from_ruby (e.g. via the brew backend applying a third-party tap package) on a platform other than Linux or macOS — metadata_sandbox() has a bail! body under #[cfg(not(linux/macos))].

Common situations: Running mise on Windows or a non-mainstream OS and installing a package that comes from a third-party Homebrew tap rather than homebrew/core.

Understand the failure class

Background: "unsupported platform" / "not supported on this platform" errors: what they mean and how to fix them — this error's family across 47 libraries.

Related errors


AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17). Data as JSON: /api/errors/868fbb5a654e252f. Report an issue: GitHub.

Appendix: source

Thrown at src/system/packages/brew/tap.rs:157

    Ok(cask)
}

#[cfg(any(target_os = "linux", target_os = "macos"))]
fn metadata_sandbox() -> Result<SandboxConfig> {
    Ok(SandboxConfig {
        deny_read: true,
        deny_write: true,
        deny_net: true,
        deny_env: true,
        deny_process: true,
        deny_temp_write: true,
        ..Default::default()
    })
}

#[cfg(not(any(target_os = "linux", target_os = "macos")))]
fn metadata_sandbox() -> Result<SandboxConfig> {
    bail!(
        "evaluating third-party tap definitions is only supported inside the Linux or macOS process sandbox"
    )
}

fn macos_version() -> String {
    if cfg!(target_os = "macos") {
        crate::cmd::cmd("sw_vers", ["-productVersion"])
            .read()
            .map(|version| version.trim().to_string())
            .unwrap_or_default()
    } else {
        "0".to_string()
    }
}

async fn resolve_tap_source(owner: &str, tap: &str, tap_url: Option<&str>) -> Result<TapSource> {
    let raw_base = api::tap_raw_base(owner, tap, tap_url)
        .ok_or_else(|| eyre::eyre!("only GitHub tap URLs can be fetched directly"))?;

View on GitHub (pinned to 533346cc37)