Skip to content

Commit 18ff4ef

Browse files
authored
Persist the UV cache for developer environments (#176)
1 parent 68b2f41 commit 18ff4ef

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1414

1515
***Added:***
1616

17+
- Persist the UV cache directory for the `linux-container` developer environment type
1718
- Update dependencies
1819

1920
## 0.24.1 - 2025-08-13

src/dda/env/dev/types/linux_container.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,8 @@ def cache_volumes(self) -> list[Mount]:
349349
Mount(type="volume", path="/go/pkg/mod", source=self.get_volume_name("go_mod_cache")),
350350
# `pip cache dir`
351351
Mount(type="volume", path="/root/.cache/pip", source=self.get_volume_name("pip_cache")),
352+
# `uv cache dir`
353+
Mount(type="volume", path="/root/.cache/uv", source=self.get_volume_name("uv_cache")),
352354
# Rust
353355
Mount(type="volume", path="/root/.cargo/registry", source=self.get_volume_name("cargo_registry")),
354356
Mount(type="volume", path="/root/.cargo/git", source=self.get_volume_name("cargo_git")),

tests/env/dev/types/test_linux_container.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ def get_cache_volumes() -> list[str]:
4949
"--mount",
5050
"type=volume,src=dda-env-dev-linux-container-pip_cache,dst=/root/.cache/pip",
5151
"--mount",
52+
"type=volume,src=dda-env-dev-linux-container-uv_cache,dst=/root/.cache/uv",
53+
"--mount",
5254
"type=volume,src=dda-env-dev-linux-container-cargo_registry,dst=/root/.cargo/registry",
5355
"--mount",
5456
"type=volume,src=dda-env-dev-linux-container-cargo_git,dst=/root/.cargo/git",

0 commit comments

Comments
 (0)