Skip to content

Commit

Permalink
Fix linking grpc on macos but installed along protoc
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Nov 27, 2023
1 parent eea39ea commit 1874353
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scripts/tools/grpc_php_plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ get_grpc_tag() {
add_grpc_php_plugin_brew() {
. "${0%/*}"/tools/brew.sh
configure_brew
[ -e /usr/local/bin/protoc ] && sudo mv /usr/local/bin/protoc /tmp/protoc && sudo mv /usr/local/include/google /tmp
brew install grpc
brew link --force --overwrite grpc >/dev/null 2>&1
[ -e /tmp/protoc ] && sudo mv /tmp/protoc /usr/local/bin/protoc && sudo mv /tmp/google /usr/local/include/
grpc_tag="v$(brew info grpc | grep "grpc:" | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+")"
license_path="$(brew --prefix grpc)/LICENSE"
}
Expand Down

0 comments on commit 1874353

Please sign in to comment.