Skip to content

proposal: cmd/go: option to disable caching for specific packages #59683

Description

@paralin

When embedding large amounts of data with embed, the data is then stored in the Go build cache.

This can cause the Go build cache to grow quite rapidly in size.

This proposal is to add a variable similar to GOPRIVATE like GONOCACHE which would disable the Go build cache for a specific list of Go packages (or package patterns).

We want to cache compiling most packages, but some, which carry large "embed" data, should not be cached.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions