我正在嘗試為官方 Hombrew 水龍頭上沒有的木桶設定我自己的 Homebrew 水龍頭。當我Error: Cannot tap depal1/gamezz: invalid syntax in tap!嘗試通過brew install 或安裝木桶時,我的木桶上出現“無效公式”錯誤brew install --cask。
我檢查了 Homebrew 檔案,并沒有發現這些錯誤。
user@Mac ~ % brew install Depal1/gamezz/eliot
==> Tapping depal1/gamezz
Cloning into '/usr/local/Homebrew/Library/Taps/depal1/homebrew-gamezz'...
remote: Enumerating objects: 34, done.
remote: Counting objects: 100% (34/34), done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 34 (delta 17), reused 21 (delta 9), pack-reused 0
Receiving objects: 100% (34/34), 4.87 KiB | 4.87 MiB/s, done.
Resolving deltas: 100% (17/17), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/depal1/homebrew-gamezz/heroic.rb
heroic: undefined method `cask' for Formulary::FormulaNamespace4614367febee3ececbe1e037717b6581:Module
Did you mean? case
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/depal1/homebrew-gamezz/alpha.rb
alpha: undefined method `cask' for Formulary::FormulaNamespace768a6fe31cc4288c1aec82563e762fbc:Module
Did you mean? case
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/depal1/homebrew-gamezz/eliot.rb
eliot: undefined method `cask' for Formulary::FormulaNamespacef6d6268ad500b3243a6c7d291d6d159f:Module
Did you mean? case
Error: Cannot tap depal1/gamezz: invalid syntax in tap!
自制水龍頭托管在https://github.com/Depal1/homebrew-gamezz
uj5u.com熱心網友回復:
木桶本身沒有錯誤,但根據檔案,您必須:
將您希望提供的任何 cask 檔案放在您的 tap 頂層的 Casks 目錄中。
比如在https://github.com/Homebrew/homebrew-cask
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/427990.html
上一篇:多次嘗試在C 中打開文本檔案失敗
