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

cmd/go/internal/cache: remove old logs in $GOCACHE/log.txt #25323

mattn opened this Issue May 10, 2018 · 3 comments


None yet
4 participants

mattn commented May 10, 2018

In my $GOCACHE, file size of my log.txt is 5.7MB. Current implementation doesn't take care the size of log.txt. Some environment possibly have more large log file. How about to add a way to remove or rotating log file?


This comment has been minimized.


ianlancetaylor commented May 10, 2018

CC @rsc

@ianlancetaylor ianlancetaylor modified the milestones: Go1.11, Go1.12 Jun 14, 2018


This comment has been minimized.

japettyjohn commented Nov 5, 2018

I can confirm the possibility of a large file - I ran into one being 12 gigs and stretching back 4 months. This could be addressed either in the go clean -cache routine in clean.go or added as another flag there, e.g. go clean -cacheLog.


This comment has been minimized.

gopherbot commented Nov 21, 2018

Change mentions this issue: cmd/go/internal/cache: remove cache logs if -cacheLog flag is set

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment