Homebrew 聲稱它已經過時了,除非我嘗試更新

Homebrew 聲稱它已經過時了,除非我嘗試更新

當我運行時,brew doctor我被告知我的 brew 安裝已過時。具體來說:

~$ brew doctor
Error: Your Homebrew is outdated
You haven't updated for at least 24 hours, this is a long time in brewland!

但當我運行更新時,顯然一切都很好:

~$: brew update
Already up-to-date.

所以,我想一切都很好?沒那麼多。brew doctor仍然告訴我我的 Homebrew 已經過時了。是什麼賦予了?

答案1

一切都很好。這只是一種糟糕的溝通方式。

Homebrewdoctor來源清楚僅檢查時間戳您的 Homebrew 存儲庫克隆:

if Time.now.to_i - timestamp > 60 * 60 * 24 then <<-EOS.undent
  Your Homebrew is outdated
  You haven't updated for at least 24 hours, this is a long time in brewland!
  EOS
end

它沒有任何關於您何時真正更新或是否有新版本可用的線索。

相關內容