Skip to content

Commit

Permalink
clean go module cache
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanashworth committed Nov 16, 2021
1 parent e701c28 commit 1cd7d6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ A cleanup script for macOS that runs the following tasks:
* Deletes Android caches
* Clears Gradle caches
* Deletes Kite logs
* Clears Go module cache

## Install Automatically

Expand Down
5 changes: 5 additions & 0 deletions mac-cleanup
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,11 @@ if type "pod" &>/dev/null; then
pod cache clean --all &>/dev/null
fi

if type "go" &>/dev/null; then
msg 'Clearing Go module cache...'
go clean -modcache &>/dev/null
fi

# Deletes all Microsoft Teams Caches and resets it to default - can fix also some performance issues
# -Astro
if [ -d ~/Library/Application\ Support/Microsoft/Teams ]; then
Expand Down

0 comments on commit 1cd7d6e

Please sign in to comment.