我已经注意到这种情况发生了几次,但是最近的实例是wp-cli
Runningbrew upgrade wp-cli
并没有下载最新版本。
$ brew upgrade wp-cli
Error: homebrew/php/wp-cli 0.20.1 already installed
$ brew info wp-cli
homebrew/php/wp-cli: stable 0.20.1, HEAD
A set of command-line tools for managing WordPress installations.
http://wp-cli.org/
/usr/local/Cellar/wp-cli/0.20.1 (2635 files, 15M) *
Built from source
From: https://github.com/Homebrew/homebrew-php/blob/master/Formula/wp-cli.rb
注意版本是0.20.1
. 当我检查公式回购时,我看到,
head "https://github.com/wp-cli/wp-cli.git"
当我检查那个 repo时,我看到 master 分支中的版本是0.24.0。brew info
并且wp --version
都返回0.20.1
。为什么 Homebrew 没有抢到最新版本?我如何强制它获取最新的?