Skip to content

Tap migrations should allow to migrate from formula to cask in the same tap #20585

@SMillerDev

Description

@SMillerDev

Verification

Provide a detailed description of the proposed feature

The current tap_migrations.json file allows people to define migrations in or outside a tap. But a scenario where the maintainer starts to distribute prebuild binaries rather than building in a formula is not covered. Therefore it would be useful if tap_migrations.json would also check if the migration is from a formula to a cask and act accordingly.

What is the motivation for the feature?

GoReleaser is now distributing precompiled binaries for brew as casks rather than formulae. But this leaves a lot of users with a formula and a cask with the same name in the same tap, and no way to automatically switch the users.

See: https://github.com/orgs/goreleaser/discussions/5563#discussioncomment-14180870

How will the feature be relevant to at least 90% of Homebrew users?

A lot of smaller Go projects use Goreleaser and distribute their software to brew that way. Making the migration to casks (that better fit the Homebrew model) easier should be better for all Homebrew users.

What alternatives to the feature have been considered?

Just hoping users notice the disabling of the formulae and manually switch to casks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions