自制水龙头和木桶的问题

Issues with homebrew tap and cask

我正在尝试为官方 Hombrew 龙头上没有的木桶设置我自己的 Homebrew 龙头。当我尝试通过 brew install brew install --cask.

安装它们时,我在 casks 上收到 Error: Cannot tap depal1/gamezz: invalid syntax in tap! 和“无效公式”错误

我查看了 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

木桶本身没有错误,但根据 documentation 你必须:

Place any cask files you wish to make available in a Casks directory at the top level of your tap.

例如https://github.com/Homebrew/homebrew-cask