Homebrew/homebrew-aliases

`brew commands` outputs `alias` command twice.

yumitsu opened this issue · 3 comments

That's what I get when running brew commands after latest updates.
Screen Shot 2020-03-02 at 09 02 15

Also, brew tap-info tells:

λ brew tap-info homebrew/aliases
homebrew/aliases: unpinned, 3 commands                     <------------ 3 commands?
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-aliases (194 files, 125.6KB)
From: https://github.com/Homebrew/homebrew-aliases

I can’t reproduce on my work machine:

$ brew commands | cat
…
==> External commands
alias
all-versions
aspell-dictionaries
bin-conflicts
blame
bundle
...
truetest
unalias
...
$ brew tap-info homebrew/aliases
homebrew/aliases: unpinned, private, 2 commands
/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-aliases (69 files, 242.7KB)
From: git@github.com:Homebrew/homebrew-aliases.git

@bfontaine Quite strange. I noticed it after brew update, so I guess it somehow related to recent changes due to migration to use Homebrew::CLI::Parser.
Maybe there were leftovers after brew update, old cmd/brew-aliases.rb perharps?

Anyway, I untapped homebrew/aliases, then tapped it back and, luckily, everything went back to normal:

brew tap -d homebrew/aliases
==> Tapping homebrew/aliases
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-aliases'...
remote: Enumerating objects: 18, done.
remote: Counting objects: 100% (18/18), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 143 (delta 3), reused 11 (delta 1), pack-reused 125
Receiving objects: 100% (143/143), 31.39 KiB | 227.00 KiB/s, done.
Resolving deltas: 100% (46/46), done.
Tapped 2 commands (37 files, 71.4KB).

I’m closing this until someone finds a way to reproduce the issue.