{"record":{"id":"868fbb5a654e252f","repo":"jdx/mise","slug":"evaluating-third-party-tap-definitions-is-only-sup","errorCode":null,"errorMessage":"evaluating third-party tap definitions is only supported inside the Linux or macOS process sandbox","messagePattern":"evaluating third-party tap definitions is only supported inside the Linux or macOS process sandbox","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/packages/brew/tap.rs","lineNumber":157,"sourceCode":"    Ok(cask)\n}\n\n#[cfg(any(target_os = \"linux\", target_os = \"macos\"))]\nfn metadata_sandbox() -> Result<SandboxConfig> {\n    Ok(SandboxConfig {\n        deny_read: true,\n        deny_write: true,\n        deny_net: true,\n        deny_env: true,\n        deny_process: true,\n        deny_temp_write: true,\n        ..Default::default()\n    })\n}\n\n#[cfg(not(any(target_os = \"linux\", target_os = \"macos\")))]\nfn metadata_sandbox() -> Result<SandboxConfig> {\n    bail!(\n        \"evaluating third-party tap definitions is only supported inside the Linux or macOS process sandbox\"\n    )\n}\n\nfn macos_version() -> String {\n    if cfg!(target_os = \"macos\") {\n        crate::cmd::cmd(\"sw_vers\", [\"-productVersion\"])\n            .read()\n            .map(|version| version.trim().to_string())\n            .unwrap_or_default()\n    } else {\n        \"0\".to_string()\n    }\n}\n\nasync fn resolve_tap_source(owner: &str, tap: &str, tap_url: Option<&str>) -> Result<TapSource> {\n    let raw_base = api::tap_raw_base(owner, tap, tap_url)\n        .ok_or_else(|| eyre::eyre!(\"only GitHub tap URLs can be fetched directly\"))?;","sourceCodeStart":139,"sourceCodeEnd":175,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/system/packages/brew/tap.rs#L139-L175","documentation":"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.","triggerScenarios":"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))].","commonSituations":"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.","solutions":["Run the operation on Linux or macOS where the process sandbox is supported","Use mise inside WSL or a Linux container/VM on that machine","Avoid the third-party tap and install the tool via another backend (e.g. aqua:, github:)"],"exampleFix":"// before (mise.toml)\n[tools]\n\"brew:sometap/formula\" = \"1.2\"\n// after\n[tools]\n\"github:owner/repo\" = \"1.2\"","handlingStrategy":"fallback","validationCode":"if cfg!(not(any(target_os = \"linux\", target_os = \"macos\"))) {\n    // skip third-party tap metadata path; use another backend or a Linux/VM host\n}","typeGuard":"fn supports_brew_tap_sandbox() -> bool {\n    cfg!(any(target_os = \"linux\", target_os = \"macos\"))\n}","tryCatchPattern":null,"preventionTips":["Only configure third-party brew taps on Linux/macOS hosts","Prefer direct backends (aqua:, github:) for tools needed on non-sandboxed platforms"],"tags":["brew","sandbox","platform"],"backgroundTag":"unsupported-platform","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"}