Skip to content

cmd/go/internal/cache: provide GOFUZZCACHE environment variable  #48901

Open
@AlekSi

Description

@AlekSi

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:

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.)

/cc @katiehockman @jayconrod

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.GoCommandcmd/goNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.fuzzIssues related to native fuzzing support

    Type

    No type

    Projects

    Status

    No status

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions