Skip to content

Commit 1aa046e

Browse files
committed
Add UV_CACHE_DIR to devcontainer to fix hardlinks in venvs created by uv
1 parent cdec8ef commit 1aa046e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.devcontainer/docker-compose.devcontainer.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ services:
1111
# both COMPOSE_PROFILES=otel and FINECODE_OTLP_ENDPOINT in .env — the ready
1212
# collector URL is provided there, so developers never compose it themselves.
1313
- FINECODE_OTLP_ENDPOINT=${FINECODE_OTLP_ENDPOINT:-}
14+
# uv's default cache (~/.cache/uv) lives on the container's overlay
15+
# filesystem, a different device than this bind-mounted workspace. uv
16+
# dedupes installs by hardlinking from its cache into each venv, but
17+
# hardlinks can't cross filesystems — so every package in every venv
18+
# would silently falling back to a full copy. Putting the
19+
# cache on the same device restores hardlinking.
20+
- UV_CACHE_DIR=/workspaces/finecode/.uv-cache
1421
volumes:
1522
- .:/workspaces/finecode:cached
1623
- ./.claude:/home/vscode/.claude:cached

0 commit comments

Comments
 (0)