jdx/mise · error

brew: tapped formula

Error message

brew: tapped formula '{name}' needs a GitHub tap URL in [bootstrap.brew.taps] so mise can fetch metadata directly without the brew CLI

What it means

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.

Solutions

  1. 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"
  2. Verify the tap owner/repo names are spelled correctly
  3. Install the brew CLI so mise can fall back to it if supported
  4. Reference homebrew/core formulas directly (owner homebrew + tap core need no URL)

Example fix

# before (mise.toml)
[bootstrap]
packages = ["mytap/tool"]
# after
[bootstrap.brew.taps]
"mytap/mytap" = "https://github.com/mytap/homebrew-mytap"
[bootstrap]
packages = ["mytap/mytap/tool"]
Defensive patterns

Strategy: validation

Validate before calling

# shell check before running mise
for f in $(grep -oE '"[^"]+/[^"]+/[^"]+"' mise.toml); do
  tap="$(echo "$f" | tr -d '"' | cut -d/ -f1-2)"
  grep -q "$tap" mise.toml || echo "declare $tap in [bootstrap.brew.taps]"
done

Prevention

When it happens

Trigger: 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).

Common situations: 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.

Understand the failure class

Background: "is required", "must be set", "missing required field": configuration validation errors across open-source libraries — this error's family across 36 libraries.

Related errors


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

Appendix: source

Thrown at src/system/packages/brew/api.rs:189

}

pub(super) async fn formula_with_tap_name(
    name: &str,
    tap_name: Option<&str>,
    tap_url: Option<&str>,
    provision_ruby: bool,
) -> Result<Formula> {
    let Some((owner, tap, formula_name)) = split_tap_name(name).or_else(|| {
        let (owner, tap) = split_tap(tap_name?)?;
        Some((owner, tap, name))
    }) else {
        return formula(name).await;
    };
    if owner == "homebrew" && tap == "core" {
        return formula(formula_name).await;
    }
    let Some(url) = tap_formula_api_url(owner, tap, formula_name, tap_url) else {
        bail!(
            "brew: tapped formula '{name}' needs a GitHub tap URL in [bootstrap.brew.taps] \
             so mise can fetch metadata directly without the brew CLI"
        );
    };
    match HTTP_FETCH.json_cached::<Formula, _>(url).await {
        Ok(formula) => Ok(formula),
        Err(api_err) => {
            super::tap::formula_from_ruby(owner, tap, formula_name, tap_url, provision_ruby)
                .await
                .wrap_err_with(|| {
                    format!(
                        "failed to resolve Homebrew tap formula '{name}'; published API metadata \
                     was unavailable ({api_err}) and mise could not evaluate its tap definition"
                    )
                })
        }
    }
}

View on GitHub (pinned to 533346cc37)