From 72832b06d3b4b49de07a6e6c538573b8c8ad0946 Mon Sep 17 00:00:00 2001 From: Vinicius Lublanski Date: Wed, 1 Oct 2025 11:43:45 -0300 Subject: [PATCH 1/2] Fix Homebrew formula to use libexec See gh-47696 Signed-off-by: Vinicius Lublanski --- .../src/main/homebrew/spring-boot.rb | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-cli/src/main/homebrew/spring-boot.rb b/spring-boot-project/spring-boot-tools/spring-boot-cli/src/main/homebrew/spring-boot.rb index 2dede209226..69702300210 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-cli/src/main/homebrew/spring-boot.rb +++ b/spring-boot-project/spring-boot-tools/spring-boot-cli/src/main/homebrew/spring-boot.rb @@ -16,9 +16,14 @@ class SpringBoot < Formula root = '.' end - bin.install Dir["#{root}/bin/spring"] - lib.install Dir["#{root}/lib/spring-boot-cli-*.jar"] - bash_completion.install Dir["#{root}/shell-completion/bash/spring"] - zsh_completion.install Dir["#{root}/shell-completion/zsh/_spring"] + libexec.install Dir["#{root}/*"] + + (bin/"spring").write_env_script libexec/"bin/spring", {} + + bash_comp = libexec/"shell-completion/bash/spring" + zsh_comp = libexec/"shell-completion/zsh/_spring" + + bash_completion.install bash_comp if bash_comp.exist? + zsh_completion.install zsh_comp if zsh_comp.exist? end end From f8e04e0be29a1a0faa59188907443d9d0d683895 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Mon, 20 Oct 2025 11:03:38 +0200 Subject: [PATCH 2/2] Polish "Fix Homebrew formula to use libexec" See gh-47696 --- .../spring-boot-cli/src/main/homebrew/spring-boot.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-cli/src/main/homebrew/spring-boot.rb b/spring-boot-project/spring-boot-tools/spring-boot-cli/src/main/homebrew/spring-boot.rb index 69702300210..84749970906 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-cli/src/main/homebrew/spring-boot.rb +++ b/spring-boot-project/spring-boot-tools/spring-boot-cli/src/main/homebrew/spring-boot.rb @@ -17,13 +17,12 @@ class SpringBoot < Formula end libexec.install Dir["#{root}/*"] - - (bin/"spring").write_env_script libexec/"bin/spring", {} + (bin/"spring").write_env_script libexec/"bin/spring", {} - bash_comp = libexec/"shell-completion/bash/spring" - zsh_comp = libexec/"shell-completion/zsh/_spring" + bash_comp = libexec/"shell-completion/bash/spring" + zsh_comp = libexec/"shell-completion/zsh/_spring" - bash_completion.install bash_comp if bash_comp.exist? - zsh_completion.install zsh_comp if zsh_comp.exist? + bash_completion.install bash_comp if bash_comp.exist? + zsh_completion.install zsh_comp if zsh_comp.exist? end end