Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up compilation by adding security scan exclusion directories #1828

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
remove defender exclude path before .gop dir removed
  • Loading branch information
tsingbx committed Mar 31, 2024
commit 5d1e1da9d45fd3a0d8526a91d13672e44037ab2e
3 changes: 1 addition & 2 deletions cmd/make.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,11 +432,10 @@ func clean() {
}

cleanGopRunCache()

defender.Remove()
}

func cleanGopRunCache() {
defender.Remove()
homeDir, _ := os.UserHomeDir()
runCacheDir := filepath.Join(homeDir, ".gop", "run")
files := []string{"go.mod", "go.sum"}
Expand Down
Loading