Skip to content

Commit 0edbdf1

Browse files
committed
docs: add Terraform .terraform shared cache example
1 parent f66a601 commit 0edbdf1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

docs/examples.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ post_create = [
140140
# post_create = [
141141
# "mkdir -p $HOME/.cache/wt/$WT_REPO_NAME/target && ln -sf $HOME/.cache/wt/$WT_REPO_NAME/target $WT_PATH/target"
142142
# ]
143+
144+
# Terraform — share the .terraform directory (providers, modules)
145+
# post_create = [
146+
# "mkdir -p $HOME/.cache/wt/$WT_REPO_NAME/.terraform && ln -sf $HOME/.cache/wt/$WT_REPO_NAME/.terraform $WT_PATH/.terraform && cd $WT_PATH && terraform init"
147+
# ]
143148
```
144149

145150
All worktrees for the same repo point to one `node_modules` (or `.venv`, or `target/`). The first `npm install` populates the cache; subsequent worktrees reuse it instantly.

0 commit comments

Comments
 (0)