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

lib/aliases: disallow aliases conflicting with dev cmds #111

Merged
merged 2 commits into from
Dec 7, 2024

Conversation

ZhongRuoyu
Copy link
Member

We already disallow aliases that have the same name as a built-in command, but we should also disallow aliases that conflict with developer commands. They don't work since the internal commands take precedence:

$ brew alias bottle=install
$ brew bottle hello
Error: Formula not installed or up-to-date: hello

ZhongRuoyu and others added 2 commits December 7, 2024 10:26
We already disallow aliases that have the same name as a built-in
command, but we should also disallow aliases that conflict with
developer commands. They don't work since the internal commands take
precedence:

    $ brew alias bottle=install
    $ brew bottle hello
    Error: Formula not installed or up-to-date: hello
@p-linnane p-linnane merged commit 63a5e51 into Homebrew:master Dec 7, 2024
4 checks passed
@MikeMcQuaid
Copy link
Member

Good idea thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants