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
Support relative mount paths and skip missing directories.
6
+
7
+
Mount paths in config are now resolved against the workspace directory, so project configs can use short relative paths like `mounts = [".jj", ".git"]` instead of hardcoded absolute paths. Missing mount paths are silently skipped at VM start, making optional mounts safe to declare unconditionally.
Copy file name to clipboardExpand all lines: packages/enclave/README.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,20 +130,24 @@ GraphQL policy parses the request body and checks actual field names (not the sp
130
130
131
131
### Mounts
132
132
133
-
Additional directories to mount in the VM (e.g. for jj workspaces):
133
+
The workspace directory is mounted automatically. Use `mounts` for directories outside it, like a jj/git repo root that is a parent of the workspace. Relative paths are resolved against the workspace directory. Missing paths are silently skipped, so optional mounts are safe to declare unconditionally:
134
134
135
135
```toml
136
-
mounts = [
137
-
"~/dev/myproject/.jj",
138
-
"~/dev/myproject/.git",
139
-
]
136
+
# In .pi/enclave.toml (project config)
137
+
mounts = ["../.jj", "../.git"]
138
+
```
139
+
140
+
Absolute and `~`-prefixed paths also work (useful in global config):
0 commit comments