Skip to content

Installation via Homebrew fails due to Homebrew's new Tap Trust Policy #1065

Description

@ShivangNagta

homebrew-6.0.0 introduced a Tap Trust Policy

From Official blog:

A third-party tap can contain arbitrary, unsandboxed Ruby that runs on your machine, so Homebrew now requires taps (and tap-qualified formulae and casks) to be explicitly trusted before their code is evaluated or run

Because the turso formula depends on another tap (libsql/sqld), Homebrew blocks the installation. (brews: block inside .goreleaser.yaml file)

Reproduce:

While running (on macOS)
brew install tursodatabase/tap/turso

I got the following:

....
Warning: No available formula with the name "libsql/sqld/sqld".
This command requires the tap libsql/sqld
If you trust this tap, tap it explicitly and then try again:

After explicitly running:
brew tap libsql/sqld
and
brew install tursodatabase/tap/turso
again

I got this error:

Error: Refusing to load formula libsql/sqld/sqld from untrusted tap libsql/sqld.
Run `brew trust --formula libsql/sqld/sqld` or `brew trust libsql/sqld` to trust it.

The CLI finally got installed after running brew trust libsql/sqld and brew install tursodatabase/tap/turso again.

Fixes

I am not sure if the team is already looking into it, but some potential fixes could be to either tell the user to explicitly tap and trust libsql/sqld or some way avoid requiring a dependency from a separate tap

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions