You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a regular CDK user, the ~/Library/Caches/com.amazonaws.jsii dir on my Mac (aka defaultCacheRoot) has steadily grown. It currently stands at over 13GB, mostly made up of old versions of CDK dependencies.
I'd like to request some mechanism for preventing this cache from growing indefinitely.
Use Case
I should be able to use CDK without having to worry about gradually running out of disk space.
Proposed Solution
Two options, which are not mutually exclusive:
Add a documented "clear cache" command to the CDK CLI that would allow users to clear the contents of the JSII cache directory (and possibly other caches as well; my ~/Library/Caches/aws-cdk-lib and ~/Library/Caches/@aws-cdk stand at a total of 3GB).
Add a system for automatically removing items from the cache that have not been used in a certain amount of time (say, 30 days). For example, on each run JSII could touch files that it reads from the cache, then delete all files in the cache whose mtime is over the time limit.
Other Information
No response
Acknowledgements
I may be able to implement this feature request
This feature might incur a breaking change
CDK version used
2.178.2
Environment details (OS name and version, etc.)
macOS 15.3.1
The text was updated successfully, but these errors were encountered:
Describe the feature
As a regular CDK user, the
~/Library/Caches/com.amazonaws.jsii
dir on my Mac (aka defaultCacheRoot) has steadily grown. It currently stands at over 13GB, mostly made up of old versions of CDK dependencies.I'd like to request some mechanism for preventing this cache from growing indefinitely.
Use Case
I should be able to use CDK without having to worry about gradually running out of disk space.
Proposed Solution
Two options, which are not mutually exclusive:
~/Library/Caches/aws-cdk-lib
and~/Library/Caches/@aws-cdk
stand at a total of 3GB).touch
files that it reads from the cache, then delete all files in the cache whosemtime
is over the time limit.Other Information
No response
Acknowledgements
CDK version used
2.178.2
Environment details (OS name and version, etc.)
macOS 15.3.1
The text was updated successfully, but these errors were encountered: