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
Copy file name to clipboardExpand all lines: docs/src/content/docs/03-features/07-caching/04-cas.mdx
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,15 @@ In the event that hard linking fails due to some operating system / host incompa
110
110
111
111
## Storage
112
112
113
-
The CAS is stored under the platform user cache directory. On Linux this is `~/.cache/terragrunt/cas` by default and honors `XDG_CACHE_HOME`, on macOS it resolves to `~/Library/Caches/terragrunt/cas`, and on Windows it resolves under `%LocalAppData%\terragrunt\cas`. This directory can be deleted to reclaim disk space when no Terragrunt processes are running against it; Terragrunt will regenerate the CAS on the next run. Avoid deleting it while a Terragrunt operation is in progress, since that can race with in-flight reads, writes, and locks in the store.
113
+
The CAS lives under the platform user cache directory:
114
+
115
+
| Platform | Path |
116
+
| --- | --- |
117
+
| Linux |`$XDG_CACHE_HOME/terragrunt/cas`, falling back to `~/.cache/terragrunt/cas`|
118
+
| macOS |`~/Library/Caches/terragrunt/cas`|
119
+
| Windows |`%LocalAppData%\terragrunt\cas`|
120
+
121
+
This directory can be deleted to reclaim disk space when no Terragrunt processes are running against it. Terragrunt will regenerate the CAS on the next run. Avoid deleting it while a Terragrunt operation is in progress, since that can race with in-flight reads, writes, and locks in the store.
114
122
115
123
Avoid partial deletions of the CAS directory without care, as that might result in partially cloned repositories and unexpected behavior.
0 commit comments