Skip to content

Commit a0d5abe

Browse files
committed
Revert hiredis patch
1 parent 102ffdc commit a0d5abe

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/scripts/extensions/relay.sh

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,6 @@ change_library_paths() {
4848
fi
4949
}
5050

51-
# Add hiredis library
52-
add_hiredis() {
53-
hiredis_url=https://github.com/redis/hiredis/archive/v1.1.0.tar.gz
54-
hiredis_sha=fe6d21741ec7f3fc9df409d921f47dfc73a4d8ff64f4ac6f1d95f951bf7f53d6
55-
sed -Ei.bak -e "s#^ url.*# url \"$hiredis_url\"#" -e "s#^ sha256.*# sha256 \"$hiredis_sha\"#" ${core_repo:?}/Formula/h/hiredis.rb
56-
brew install -s hiredis
57-
lib_dir="${brew_prefix:?}"/opt/hiredis/lib
58-
if [ -e "$lib_dir"/libhiredis_ssl.1.1.0.dylib ]; then
59-
sudo ln -sf "$lib_dir"/libhiredis_ssl.1.1.0.dylib "$lib_dir"/libhiredis_ssl.dylib.1.1.0
60-
fi
61-
mv ${core_repo:?}/Formula/h/hiredis.rb.bak ${core_repo:?}/Formula/h/hiredis.rb
62-
}
63-
6451
# Add relay dependencies
6552
add_relay_dependencies() {
6653
add_extension json
@@ -69,8 +56,7 @@ add_relay_dependencies() {
6956
if [ "$os" = "Darwin" ]; then
7057
. "${0%/*}"/tools/brew.sh
7158
configure_brew
72-
brew install lz4 zstd concurrencykit
73-
add_hiredis
59+
brew install lz4 hiredis zstd concurrencykit
7460
fi
7561
}
7662

0 commit comments

Comments
 (0)