From 789fd7ff28a1a9cbf710c6c69b7854e536c6ebac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geyslan=20Greg=C3=B3rio?= Date: Tue, 21 May 2024 15:48:05 -0300 Subject: [PATCH] chore: temp fix for install zstd on AMIs AMIs have to be updated and installations like this commented out. --- tests/e2e-install-deps.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/e2e-install-deps.sh b/tests/e2e-install-deps.sh index c361bd0a20ca..33ac8f6e0be1 100755 --- a/tests/e2e-install-deps.sh +++ b/tests/e2e-install-deps.sh @@ -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 zstd + ;; + *) + echo "Unsupported OS: $ID" + exit 1 + ;; + esac +} + # Main logic. # Note: I left commented out the commands that would (re)install clang-14. This @@ -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