vendor-install: cleanup bootsnap.

This commit is contained in:
Mike McQuaid 2024-07-13 11:50:53 -04:00
parent b25cdbabba
commit 6abdbd1fe0
No known key found for this signature in database

View File

@ -365,4 +365,11 @@ homebrew-vendor-install() {
lock "vendor-install-${VENDOR_NAME}"
fetch
install
# Bootsnap needs cleaned up on a new Ruby version.
# It's cleaned up by every `brew cleanup` run anyway so not a big deal to do it here, too.
if [[ "${VENDOR_NAME}" == "ruby" ]]
then
rm -rf "${HOMEBREW_CACHE}/bootsnap"
fi
}