Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli/named_args: raise priority of core casks #17681

Merged
merged 1 commit into from
Jul 12, 2024
Merged

Conversation

Bo98
Copy link
Member

@Bo98 Bo98 commented Jul 12, 2024

Previously we had a simple implementation where formulae are higher priority than casks. In the case of a conflict between a third-party tap formula and core tap cask, change this so that the core tap cask is prioritised as this is less confusing since the homebrew/cask/ prefix is not common practice but is for third-party taps. This will likely better align with the user's intentions.

@apainintheneck apainintheneck added the cask Homebrew Cask label Jul 12, 2024
@apainintheneck
Copy link
Contributor

While I think this is the right approach (or at least matches how I would have expected things to work intuitively), I wonder how worried we should be about this potentially breaking existing scripts.

@Bo98
Copy link
Member Author

Bo98 commented Jul 12, 2024

Scripts that rely on unqualified names for third-party formulae already tread on fairly thin ice as they could easily be trumped by a Homebrew/core formula added without notice. There is no guarantee that such formula would be for the same underlying software.

Main extra difference for casks is they potentially invoke sudo on brew install.

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks for quick turnaround here @Bo98!

@MikeMcQuaid MikeMcQuaid merged commit d9da0ca into master Jul 12, 2024
25 checks passed
@MikeMcQuaid MikeMcQuaid deleted the core-cask-priority branch July 12, 2024 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cask Homebrew Cask
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants