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
Verification
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_withdoes 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:
conflicts_withDSL to allow side-by-side installs and handle conflicts on the linking endlink_conflictsDSL (maybe in addition toconflicts_with.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/caskWhat 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