Skip to content

Commit

Permalink
Merge pull request #3036 from ActiveState/mitchell/dx-2416
Browse files Browse the repository at this point in the history
Expand the artifact cache size from 500MB to 1GB.
  • Loading branch information
mitchell-as authored Jan 22, 2024
2 parents a45a767 + 764577e commit f9b2d77
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 f9b2d77

Please sign in to comment.