自制软件未更新我的软件包的版本

时间:2019-10-08 01:35:09

标签: macos homebrew

我是一个自制软件的新手,有一个带有Mac-Mark(https://github.com/sjbonner/homebrew-tap)单包的水龙头。 Tap仅是Program MARK可执行文件的包装,用于分析标记回收数据,该数据定义了gcc库的位置。

我已经多次更新了公式(现在是v0.0.7),但是命令

brew install mark-on-mac

始终查找并安装v0.0.3版本。为了安装最新版本,我必须指定我的水龙头

brew install sjbonner/tap/mark-on-mac

这里有一个清单,显示了我不这样做时的行为,然后指定水龙头

Simons-MBP:homebrew-tap sbonner$ brew info mark-on-mac
mark-on-mac: stable 0.0.3
Command-line version of Dr. Gary White's mark-recapture software
http://warnercnr.colostate.edu/~gwhite/mark/mark.htm
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/mark-on-mac.rb
Simons-MBP:homebrew-tap sbonner$ brew install mark-on-mac
==> Downloading https://github.com/sjbonner/mark-on-mac/archive/v0.0.3.tar.gz
==> Downloading from https://codeload.github.com/sjbonner/mark-on-mac/tar.gz/v
                                                                           0.8#                                                                          2.1########                                                                  12.1###############                                                           22.2######################                                                    31.3###########################                                               38.5##################################                                        48.4##########################################                                59.2#################################################                         69.1########################################################                  79.0################################################################          89.7######################################################################## 100.0%
?  /usr/local/Cellar/mark-on-mac/0.0.3: 5 files, 4.0MB, built in 6 seconds
Simons-MBP:homebrew-tap sbonner$ brew uninstall mark-on-mac
Uninstalling /usr/local/Cellar/mark-on-mac/0.0.3... (5 files, 4.0MB)
Simons-MBP:homebrew-tap sbonner$ brew info sjbonner/tap/mark-on-mac
sjbonner/tap/mark-on-mac: stable 0.0.7
Command-line version of Dr. Gary White's mark-recapture software
http://warnercnr.colostate.edu/~gwhite/mark/mark.htm
Not installed
From: https://github.com/sjbonner/homebrew-tap/blob/master/mark-on-mac.rb
Simons-MBP:homebrew-tap sbonner$ brew install sjbonner/tap/mark-on-mac
==> Installing mark-on-mac from sjbonner/tap
==> Downloading https://github.com/sjbonner/mark-on-mac/archive/v0.0.7.tar.gz
Already downloaded: /Users/sbonner/Library/Caches/Homebrew/downloads/a0310eb4eafbf40481bd5f010d2e369da2f91c41a203b508c340bfad893fd501--mark-on-mac-0.0.7.tar.gz
?  /usr/local/Cellar/mark-on-mac/0.0.7: 5 files, 4MB, built in 3 seconds
Removing: /Users/sbonner/Library/Caches/Homebrew/mark-on-mac--0.0.3.tar.gz... (1.7MB)
Simons-MBP:homebrew-tap sbonner$

有人可以告诉我为什么会这样吗?为什么默认情况下会安装v0.0.3?我该如何阻止呢?

谢谢!

西蒙(Simon)

1 个答案:

答案 0 :(得分:0)

似乎本地存储库sjbonner/tap已过时。您需要将本地存储库与远程存储库进行同步。

# cd into the local repo
cd "$(brew --repo sjbonner/tap)"

# find out the latest commit locally
git log -s -1
# compare the commit with your remote repo

# if the repo is outdated, run
brew update