Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Use shared volume for devcontainer uv cache
Instead of mounting the user's local cache. For the first use this will
be slower (if the user has previously used uv) but using a separate
volume means links within the cache referring to devcontainer locations
will not interfere with uv being run from outside the container.

Using a named volume means devcontainers for multiple projects can share
the same cache.
  • Loading branch information
tpoliaw committed Oct 23, 2025
commit 89f799fa613778fadd2f0b8b6713ca75ca78431e
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
},
// Keep a persistent cross container cache for uv
{
"source": "${localEnv:HOME}/.cache/uv",
"source": "persistent-uv-cache",
"target": "/root/.cache/uv",
"type": "bind"
"type": "volume"
},
// Use a volume mount for the uv venv so it is local to the container
{
Expand Down
Loading