mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-08-10 23:54:44 +07:00
Pin hiredis version to 1.1 for relay [skip ci]
This commit is contained in:
@ -48,12 +48,17 @@ change_library_paths() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Link hiredis library
|
# Add hiredis library
|
||||||
link_hiredis() {
|
add_hiredis() {
|
||||||
lib_dir="${brew_prefix:?}"/opt/hiredis/lib
|
hiredis_url=https://github.com/redis/hiredis/archive/v1.1.0.tar.gz
|
||||||
if [ -e "$lib_dir"/libhiredis_ssl.1.1.0.dylib ]; then
|
hiredis_sha=fe6d21741ec7f3fc9df409d921f47dfc73a4d8ff64f4ac6f1d95f951bf7f53d6
|
||||||
sudo ln -sf "$lib_dir"/libhiredis_ssl.1.1.0.dylib "$lib_dir"/libhiredis_ssl.dylib.1.1.0
|
sed -Ei.bak -e "s#^ url.*# url \"$hiredis_url\"#" -e "s#^ sha256.*# sha256 \"$hiredis_sha\"#" ${core_repo:?}/Formula/h/hiredis.rb
|
||||||
fi
|
brew install -s hiredis
|
||||||
|
lib_dir="${brew_prefix:?}"/opt/hiredis/lib
|
||||||
|
if [ -e "$lib_dir"/libhiredis_ssl.1.1.0.dylib ]; then
|
||||||
|
sudo ln -sf "$lib_dir"/libhiredis_ssl.1.1.0.dylib "$lib_dir"/libhiredis_ssl.dylib.1.1.0
|
||||||
|
fi
|
||||||
|
mv ${core_repo:?}/Formula/h/hiredis.rb.bak ${core_repo:?}/Formula/h/hiredis.rb
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add relay dependencies
|
# Add relay dependencies
|
||||||
@ -64,8 +69,8 @@ add_relay_dependencies() {
|
|||||||
if [ "$os" = "Darwin" ]; then
|
if [ "$os" = "Darwin" ]; then
|
||||||
. "${0%/*}"/tools/brew.sh
|
. "${0%/*}"/tools/brew.sh
|
||||||
configure_brew
|
configure_brew
|
||||||
brew install hiredis lz4 zstd concurrencykit
|
brew install lz4 zstd concurrencykit
|
||||||
link_hiredis
|
add_hiredis
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user