【问题标题】:Pivotal/tap failed on brewPivotal/tap 在 brew 上失败
【发布时间】:2020-12-27 08:55:40
【问题描述】:

我正在尝试使用以下命令点击关键

brew tap pivotal/tap

但出现以下错误。

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 中,它确实使用了 depends_on :java

我尝试设置 JAVA_HOME 但似乎不起作用。有办法解决这个问题吗?

【问题讨论】:

    标签: java homebrew


    【解决方案1】:

    当您等待 this fix PR 合并到主服务器时。

    您可以自己试用此解决方案:

    • brew tap pivotal/tap(这不起作用,请参阅下面的[update]
    • brew edit trilogy
    • depends_on "openjdk"替换depends_on :java(基本上就是那个补丁PR)
    • 保存更改
    • 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 .

    【讨论】:

      【解决方案2】:

      正如错误消息已经说的那样,关键公式之一存在问题。
      除了错误已经告诉您的内容之外,您无能为力:

      请将此问题报告给关键/水龙头(不是 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

      【讨论】:

      • 是否有替代设置 java 的方法?我是新手。
      • 如前所述,我认为您无能为力。这个公式就像食谱,brew 做这个食谱中写的任何东西。 (除非它不能像这种情况下那样做配方中写的)
      【解决方案3】:

      Spring Boot 已迁移到 spring-io/tap
      要升级 Spring Boot,请使用以下命令重新安装:

      brew uninstall springboot
      brew untap pivotal/tap
      brew tap spring-io/tap
      brew install spring-boot
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-01-20
        • 1970-01-01
        • 1970-01-01
        • 2012-01-29
        • 1970-01-01
        • 1970-01-01
        • 2023-01-20
        • 1970-01-01
        相关资源
        最近更新 更多