From 6abdbd1fe05d975fa0bb94c5f4219085cfa4b593 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 13 Jul 2024 11:50:53 -0400 Subject: [PATCH] vendor-install: cleanup bootsnap. --- Library/Homebrew/cmd/vendor-install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Library/Homebrew/cmd/vendor-install.sh b/Library/Homebrew/cmd/vendor-install.sh index ab6b4afffc..4a47df700c 100644 --- a/Library/Homebrew/cmd/vendor-install.sh +++ b/Library/Homebrew/cmd/vendor-install.sh @@ -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 }