{"record":{"id":"549879e237f87907","repo":"jdx/mise","slug":"brew-tapped-formula-name-needs-a-github-tap-u","errorCode":null,"errorMessage":"brew: tapped formula '{name}' needs a GitHub tap URL in [bootstrap.brew.taps] so mise can fetch metadata directly without the brew CLI","messagePattern":"brew: tapped formula '(.+?)' needs a GitHub tap URL in \\[bootstrap\\.brew\\.taps\\] so mise can fetch metadata directly without the brew CLI","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/packages/brew/api.rs","lineNumber":189,"sourceCode":"}\n\npub(super) async fn formula_with_tap_name(\n    name: &str,\n    tap_name: Option<&str>,\n    tap_url: Option<&str>,\n    provision_ruby: bool,\n) -> Result<Formula> {\n    let Some((owner, tap, formula_name)) = split_tap_name(name).or_else(|| {\n        let (owner, tap) = split_tap(tap_name?)?;\n        Some((owner, tap, name))\n    }) else {\n        return formula(name).await;\n    };\n    if owner == \"homebrew\" && tap == \"core\" {\n        return formula(formula_name).await;\n    }\n    let Some(url) = tap_formula_api_url(owner, tap, formula_name, tap_url) else {\n        bail!(\n            \"brew: tapped formula '{name}' needs a GitHub tap URL in [bootstrap.brew.taps] \\\n             so mise can fetch metadata directly without the brew CLI\"\n        );\n    };\n    match HTTP_FETCH.json_cached::<Formula, _>(url).await {\n        Ok(formula) => Ok(formula),\n        Err(api_err) => {\n            super::tap::formula_from_ruby(owner, tap, formula_name, tap_url, provision_ruby)\n                .await\n                .wrap_err_with(|| {\n                    format!(\n                        \"failed to resolve Homebrew tap formula '{name}'; published API metadata \\\n                     was unavailable ({api_err}) and mise could not evaluate its tap definition\"\n                    )\n                })\n        }\n    }\n}","sourceCodeStart":171,"sourceCodeEnd":207,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/system/packages/brew/api.rs#L171-L207","documentation":"For a Homebrew formula living in a non-core tap, mise fetches metadata directly from GitHub (without the brew CLI). To build the API URL it needs the tap's GitHub URL, which must be declared in [bootstrap.brew.taps] in mise config; if the tap URL can't be resolved, this bail fires.","triggerScenarios":"Requesting a tapped formula like `owner/tap/formula` where the tap is not homebrew/core and its GitHub URL is absent from bootstrap.brew.taps (and not inferable from the provided tap_url).","commonSituations":"Config referencing a third-party tap (e.g. homebrew/cask variants, personal taps) without declaring it; renamed or organization-moved taps whose URL changed; formulas moved from core to a tap.","solutions":["Add the tap's GitHub URL under [bootstrap.brew.taps] in mise.toml, e.g. [bootstrap.brew.taps] \"owner/tap\" = \"https://github.com/owner/homebrew-tap\"","Verify the tap owner/repo names are spelled correctly","Install the brew CLI so mise can fall back to it if supported","Reference homebrew/core formulas directly (owner homebrew + tap core need no URL)"],"exampleFix":"# before (mise.toml)\n[bootstrap]\npackages = [\"mytap/tool\"]\n# after\n[bootstrap.brew.taps]\n\"mytap/mytap\" = \"https://github.com/mytap/homebrew-mytap\"\n[bootstrap]\npackages = [\"mytap/mytap/tool\"]","handlingStrategy":"validation","validationCode":"# shell check before running mise\nfor f in $(grep -oE '\"[^\"]+/[^\"]+/[^\"]+\"' mise.toml); do\n  tap=\"$(echo \"$f\" | tr -d '\"' | cut -d/ -f1-2)\"\n  grep -q \"$tap\" mise.toml || echo \"declare $tap in [bootstrap.brew.taps]\"\ndone","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Declare every non-core tap's GitHub URL in [bootstrap.brew.taps]","Keep tap owner/repo names matching the actual GitHub repo (homebrew- prefix)","Prefer homebrew/core formula tokens when a core equivalent exists"],"tags":["brew","homebrew","tap","config","mise"],"backgroundTag":"missing-required-config-field","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"}