Skip to content

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

@paralin

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Status

    Incoming

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions