Open
Description
Go provides GOCACHE
and GOMODCACHE
environment variables to control build and modules cache locations. There is no environment variable to control fuzz corpus cache location; it is hard-coded to be $GOCACHE/fuzz
.
I think that fuzz cache is significantly different from the build (and test) cache:
- it is being cleaned by different
go clean
flags; - it has a different lifetime (cmd/go/internal/cache: in Cache.Trim, evict fuzz files #48526);
- it is a bit more valuable than a build cache (it takes more time to find interesting inputs than "just" compilation);
- etc.
For that reason, I think it would be helpful to provide GOFUZZCACHE
environment variable to control fuzz cache location. That would help people building automation around sharing that cache between machines.
(I'm also not really sure that fuzz cache directory should be a subdirectory of the build cache by default, but that might be too late to change that.)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status
Status
No status