From 65fad67e88451170acccb46fb914479139f3eb4c Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Tue, 7 Nov 2023 13:11:56 +0530 Subject: [PATCH] Fix updating homebrew dependencies after sharding in core tap --- src/scripts/darwin.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index 2dc25e1c3..9f75a3444 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -126,7 +126,8 @@ patch_brew() { # Helper function to update the dependencies. update_dependencies_helper() { dependency=$1 - get -q -n "$core_repo/Formula/$dependency.rb" "https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/$dependency.rb" + [[ "${dependency:0:3}" = "lib" ]] && prefix=lib || prefix="${dependency:0:1}" + get -q -n "$core_repo/Formula/$prefix/$dependency.rb" "https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/$prefix/$dependency.rb" link_libraries "$dependency" }