-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New and improved conflicts_with handling for formulae and casks #16398
Copy link
Copy link
Closed
Description
Verification
- This issue's title and/or description do not reference a single formula e.g.
brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.
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_withDSL to allow side-by-side installs and handle conflicts on the linking end - Add a new
link_conflictsDSL (maybe in addition toconflicts_with - In theory, we could move conflict handling to a
.jsonfile inside each tap. The only benefit of this that I can think of is that we wouldn't have to worry about making sure eachconflicts_with/link_conflictsis 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels