Skip to content

New and improved conflicts_with handling for formulae and casks #16398

Open
@Rylan12

Description

@Rylan12

Verification

Provide a detailed description of the proposed feature

Right now, conflicts_with does not allow you to install two formulae or casks with conflicts with each other. However, in some cases, the two formulae should still be able to be installed and simply not both linked at the same time. Instead, we should handle this more intelligently by allowing side-by-side installs when possible, and simply avoid linking.

Here are some possible ways to handle this:

  • Change the behavior of the conflicts_with DSL to allow side-by-side installs and handle conflicts on the linking end
  • Add a new link_conflicts DSL (maybe in addition to conflicts_with
  • In theory, we could move conflict handling to a .json file inside each tap. The only benefit of this that I can think of is that we wouldn't have to worry about making sure each conflicts_with/link_conflicts is properly paired with a corresponding entry in the conflicting formula/cask

What is the motivation for the feature?

Homebrew/homebrew-cask#12822, #16374, #16309, and others

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

This is relevant to anyone installing a formula or cask that conflicts with something else

What alternatives to the feature have been considered?

Leaving as-is

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionInput solicited from othersfeaturesNew featureshelp wantedWe want help addressing this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions