brew上的pivotal/tap失败

uujelgoq  于 2021-06-29  发布在  Java
关注(0)|答案(2)|浏览(506)

我正试图用下面的命令点击pivotal
brew点击/点击
但是得到以下错误。

Error: Invalid formula: /usr/local/Homebrew/Library/Taps/pivotal/homebrew-tap/trilogy.rb
trilogy: Calling depends_on :java is disabled! Use "depends_on "openjdk@11", "depends_on "openjdk@8" or "depends_on "openjdk" instead.
Please report this issue to the pivotal/tap tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/pivotal/homebrew-tap/trilogy.rb:9

在trilogy.rb中,它确实使用依赖于:java
我试着把javau放在家里,但似乎不起作用。有什么办法解决这个问题吗?

sg2wtvxw

sg2wtvxw1#

当您等待此修复pr合并到主程序时。
您可以试用此解决方案供自己使用: brew tap pivotal/tap (这不起作用,请参阅 [update] (下图) brew edit trilogy 替换 depends_on :javadepends_on "openjdk" (基本上就是那个补丁)
保存更改 brew install trilogy 我的安装结果

$ trilogy --version
                                                  ver. 0.3.2
                  ****************
                  **************
                  ************
                  **********
                    *  ********  *
                      **********
                    *************

      _______ _____  _____ __     ____   _______     __
     |__   __|  __ \|_   _| |    / __ \ / ____\ \   / /
        | |  | |__) | | | | |   | |  | | |  __ \ \_/ /
        | |  |  _  /  | | | |   | |  | | | |_ | \   /
        | |  | | \ \ _| |_| |___| |__| | |__| |  | |
        |_|  |_|  \_\_____|______\____/ \_____|  |_|

[==   Database Logic Testing Framework by Pivotal Labs   ==]

Usage: trilogy [<filePath>|--project=<path to trilogy test project>] --db_url=<jdbc url> --db_user=<db user name> --db_password=<db user password>
The db_url, db_user and db_password can be replaced by setting environment variables with the same name in upper case
Run `trilogy --help` to display this help message

[更新]

如果你遇到 brew tap pivotal/tap 问题,请这样做(这是一个手册 brew tap xx ). mkdir -p /usr/local/Homebrew/Library/Taps/pivotal/homebrew-tap cd /usr/local/Homebrew/Library/Taps/pivotal/homebrew-tap git clone https://github.com/pivotal-legacy/homebrew-tap .

hsgswve4

hsgswve42#

因为错误消息已经指出其中一个pivotals公式中存在问题。
除了错误已经告诉你的以外,你不能做太多:
请将此问题报告给pivotal/tap tap(不是homebrew/brew或homebrew/core),或者提交一份pr来解决它:/usr/local/homebrew/library/taps/pivotal/homebrew tap/trilogy.rb:9
编辑:
似乎其他用户更快。github repo上已经有一个问题:https://github.com/pivotal-legacy/homebrew-tap/issues/176

相关问题