pivotal-legacy / homebrew-tap

33 stars 49 forks source link

Error: Invalid formula: /usr/local/Homebrew/Library/Taps/pivotal/homebrew-tap/trilogy.rb #176

Open ghost opened 3 years ago

ghost commented 3 years ago

Hi, I met this error when I tried to install springboot-cli, how to fix it?

➜  homebrew git:(stable) brew tap pivotal/tap && brew install gemfire
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 5 formulae.

==> Tapping pivotal/tap
Cloning into '/usr/local/Homebrew/Library/Taps/pivotal/homebrew-tap'...
remote: Enumerating objects: 39, done.
remote: Counting objects: 100% (39/39), done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 1474 (delta 19), reused 21 (delta 9), pack-reused 1435
Receiving objects: 100% (1474/1474), 281.49 KiB | 369.00 KiB/s, done.
Resolving deltas: 100% (842/842), done.
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

Error: Cannot tap pivotal/tap: invalid syntax in tap!
dwprice260 commented 3 years ago

I am getting this error also, in trying to "brew tap pivotal/tap".

0p3r4t0r commented 3 years ago

Same error here.

sw_vers
ProductName:    Mac OS X
ProductVersion: 10.15.7
BuildVersion:   19H2

Java installed/updated to latest via brew

java --version
java 15.0.1 2020-10-20
Java(TM) SE Runtime Environment (build 15.0.1+9-18)
Java HotSpot(TM) 64-Bit Server VM (build 15.0.1+9-18, mixed mode, sharing)
brew --version
Homebrew 2.7.0
Homebrew/homebrew-core (git revision f6313; last commit 2020-12-25)
Homebrew/homebrew-cask (git revision 8cc958; last commit 2020-12-26)
yangxyo commented 3 years ago
Failed to import: /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
minz-github commented 3 years ago

Got the same error here, and it seems like due to this change one week ago

amiretemad commented 3 years ago

Get the same error :(

jesperronn commented 3 years ago

Same error for me. @philwebb you made the last user-based merge onto master, which I presume is working. Is there any chance you can revert the last commit that @minz-github points to (or at least investigate if it is causing the problem).

I am currently blocked, as I cannot install springboot CLI because of the error in the tap. I would greatly appreciate any manual interference with the master branch so that other taps are unblocked.

onichols-pivotal commented 3 years ago

Got the same error here, and it seems like due to this change one week ago

no, the change you reference did not cause the problem. a new version of brew itself caused the problem. the above commit fixed it for gemfire (see #175) but we are all still waiting for someone to merge the PR #177 to make a similar fix for trilogy.