jenkinsci / jenkinsfile-runner

A command line tool to run Jenkinsfile as a function
MIT License
1.14k stars 292 forks source link

Homebrew formula error Unsupported special dependency :java #549

Closed henryborchers closed 3 years ago

henryborchers commented 3 years ago

I'm unable to install the homebrew formula for jenkinsfile-runner.

hborcher@LIBLAPPRE18 ~ % brew tap jenkinsci/jenkinsfile-runner https://github.com/jenkinsci/jenkinsfile-runner.git
==> Tapping jenkinsci/jenkinsfile-runner
Cloning into '/usr/local/Homebrew/Library/Taps/jenkinsci/homebrew-jenkinsfile-runner'...
remote: Enumerating objects: 5712, done.
remote: Counting objects: 100% (758/758), done.
remote: Compressing objects: 100% (362/362), done.
remote: Total 5712 (delta 297), reused 636 (delta 221), pack-reused 4954
Receiving objects: 100% (5712/5712), 1.58 MiB | 2.93 MiB/s, done.
Resolving deltas: 100% (2346/2346), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/jenkinsci/homebrew-jenkinsfile-runner/Formula/jenkinsfile-runner.rb
jenkinsfile-runner: Unsupported special dependency :java
Error: Cannot tap jenkinsci/jenkinsfile-runner: invalid syntax in tap!

I noticed that when trying to install the java package directly from homebrew it redirects to openjdk. My guess is that the official homebrew tap removed it and replaced it with openjdk, which breaks the jenkinsfile-runner formula.