Skip to content

Commit

Permalink
chore: temp fix for install libzstd on AMIs
Browse files Browse the repository at this point in the history
AMIs have to be updated and installations like this commented out.
  • Loading branch information
geyslan committed May 21, 2024
1 parent 656df9a commit ac9bdb1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/e2e-install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,22 @@ remove_golang_os_packages() {
apt-get --purge autoremove -y
}

install_libzstd_os_packages() {
case $ID in
"ubuntu")
wait_for_apt_locks
apt-get install -y libzstd-dev
;;
"almalinux")
yum install -y libzstd-devel
;;
*)
echo "Unsupported OS: $ID"
exit 1
;;
esac
}

# Main logic.

# Note: I left commented out the commands that would (re)install clang-14. This
Expand Down Expand Up @@ -328,3 +344,6 @@ if [[ $ID == "almalinux" ]]; then
remove_golang_usr_bin_files
install_golang_from_github
fi

# for static builds libelf might require libzstd
install_libzstd_os_packages

0 comments on commit ac9bdb1

Please sign in to comment.