Skip to content

Commit 3cc2e9c

Browse files
committed
Remove --head support from Homebrew formula for CLI
Closes gh-47878
1 parent a533dd6 commit 3cc2e9c

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

cli/spring-boot-cli/src/main/homebrew/spring-boot.rb

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,9 @@ class SpringBoot < Formula
55
url '${repo}/org/springframework/boot/spring-boot-cli/${version}/spring-boot-cli-${version}-bin.tar.gz'
66
version '${version}'
77
sha256 '${hash}'
8-
head 'https://github.com/spring-projects/spring-boot.git', :branch => "main"
98

109
def install
11-
if build.head?
12-
system './gradlew cli:spring-boot-cli:tar'
13-
system 'tar -xzf cli/spring-boot-cli/build/distributions/spring-* -C cli/spring-boot-cli/build/distributions'
14-
root = 'cli/spring-boot-cli/build/distributions/spring-*'
15-
else
16-
root = '.'
17-
end
18-
19-
libexec.install Dir["#{root}/*"]
10+
libexec.install Dir["./*"]
2011
(bin/"spring").write_env_script libexec/"bin/spring", {}
2112

2213
bash_comp = libexec/"shell-completion/bash/spring"

0 commit comments

Comments
 (0)