From 7d6d5eb8b044871f3530e078cc22b7ec80870c26 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Thu, 8 Jan 2026 10:20:04 +0800 Subject: [PATCH] Fix the issue with the IDE GoLang cache #269 --- lib/core/base.sh | 1 + lib/manage/update.sh | 2 +- lib/manage/whitelist.sh | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/core/base.sh b/lib/core/base.sh index ab39a66..5a455e9 100644 --- a/lib/core/base.sh +++ b/lib/core/base.sh @@ -70,6 +70,7 @@ declare -a DEFAULT_WHITELIST_PATTERNS=( "$HOME/Library/Caches/pypoetry/virtualenvs*" "$HOME/Library/Caches/JetBrains*" "$HOME/Library/Caches/com.jetbrains.toolbox*" + "$HOME/Library/Application Support/JetBrains*" "$HOME/Library/Caches/com.apple.finder" "$HOME/Library/Mobile Documents*" # System-critical caches that affect macOS functionality and stability diff --git a/lib/manage/update.sh b/lib/manage/update.sh index 8878a4d..b700f31 100644 --- a/lib/manage/update.sh +++ b/lib/manage/update.sh @@ -96,7 +96,7 @@ ask_for_updates() { fi echo "" - echo -e "${YELLOW}💡 To update, please run:${NC} ${GREEN}brew upgrade${NC}" + echo -e "${YELLOW}💡 Run ${GREEN}brew upgrade${YELLOW} to update${NC}" return 1 } diff --git a/lib/manage/whitelist.sh b/lib/manage/whitelist.sh index 75f0762..e648e9e 100755 --- a/lib/manage/whitelist.sh +++ b/lib/manage/whitelist.sh @@ -85,7 +85,8 @@ Xcode archives (built app packages)|$HOME/Library/Developer/Xcode/Archives/*|ide Xcode internal cache files|$HOME/Library/Caches/com.apple.dt.Xcode/*|ide_cache Xcode iOS device support symbols|$HOME/Library/Developer/Xcode/iOS DeviceSupport/*/Symbols/System/Library/Caches/*|ide_cache Maven local repository (Java dependencies)|$HOME/.m2/repository/*|ide_cache -JetBrains IDEs cache (IntelliJ, PyCharm, WebStorm)|$HOME/Library/Caches/JetBrains/*|ide_cache +JetBrains IDEs data (IntelliJ, PyCharm, WebStorm, GoLand)|$HOME/Library/Application Support/JetBrains/*|ide_cache +JetBrains IDEs cache|$HOME/Library/Caches/JetBrains/*|ide_cache Android Studio cache and indexes|$HOME/Library/Caches/Google/AndroidStudio*/*|ide_cache Android build cache|$HOME/.android/build-cache/*|ide_cache VS Code runtime cache|$HOME/Library/Application Support/Code/Cache/*|ide_cache