From c92736d124bc8a10c6633a516c62f3391823db94 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Thu, 9 Feb 2023 20:47:25 +0000 Subject: [PATCH] Don't clean up haddock and profiling libs on MacOS (#7069) This was initially meant to save space in docker containers, but breaks several use cases and runner images shouldn't have space constraints. --- images/macos/provision/core/haskell.sh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/images/macos/provision/core/haskell.sh b/images/macos/provision/core/haskell.sh index feac3c3ed..342c5f6ec 100644 --- a/images/macos/provision/core/haskell.sh +++ b/images/macos/provision/core/haskell.sh @@ -14,13 +14,6 @@ for majorMinorVersion in $minorMajorVersions; do echo "install ghc version $fullVersion..." ghcup install $fullVersion ghcup set $fullVersion - - # remove docs and profiling libs - ghc_dir="$(ghcup whereis basedir)/ghc/$fullVersion" - [ -e "${ghc_dir}" ] || exit 1 - find "${ghc_dir}" \( -name "*_p.a" -o -name "*.p_hi" \) -type f -delete - rm -r "${ghc_dir}"/share/* - unset ghc_bin_dir ghc_dir done echo "install cabal..."