Skip to content

Commit

Permalink
Expand the artifact cache size from 500MB to 1GB.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchell-as committed Jan 19, 2024
1 parent 5b21b9d commit 764577e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/platform/runtime/artifactcache/artifactcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ type ArtifactCache struct {

const MB int64 = 1024 * 1024

// New returns a new artifact cache in the State Tool's cache directory with the default maximum size of 500MB.
// New returns a new artifact cache in the State Tool's cache directory with the default maximum size of 1GB.
func New() (*ArtifactCache, error) {
var maxSize int64 = 500 * MB
var maxSize int64 = 1024 * MB
// TODO: size should be configurable and the user should be warned of an invalid size.
// https://activestatef.atlassian.net/browse/DX-984
if sizeOverride, err := strconv.Atoi(os.Getenv(constants.ArtifactCacheSizeEnvVarName)); err != nil && sizeOverride > 0 {
Expand Down

0 comments on commit 764577e

Please sign in to comment.