Skip to content

Quickly sandbox your AI agent.

Python

fix(build): Clean quicksand-qemu from uv cache, add .env to gitignore

Tyler Payne3d3406eca4e0
diff --git a/.gitignore b/.gitignore
index 7712d0c..ba05909 100644
--- a/.gitignore
+++ b/.gitignore
@@ -40,6 +40,9 @@ manifest.json
# Local scripts
scripts/rewrite-history.sh
+# Environment
+.env
+
# Temp files
*.tmp
*.log
diff --git a/uvr_hooks.py b/uvr_hooks.py
index 45b1cf8..b6ffc8a 100644
--- a/uvr_hooks.py
+++ b/uvr_hooks.py
@@ -146,7 +146,6 @@ class Hooks(ReleaseHook):
if not deps_dir.exists():
return
- extracted = False
for whl in sorted(deps_dir.glob("*.whl")):
with zipfile.ZipFile(whl) as zf:
for name in zf.namelist():
@@ -163,13 +162,13 @@ class Hooks(ReleaseHook):
print(f" Extracting {name} from {whl.name}")
with zf.open(name) as src, open(dest, "wb") as dst:
shutil.copyfileobj(src, dst)
- extracted = True
- if extracted:
- subprocess.run(
- ["uv", "cache", "clean", "quicksand-ubuntu", "quicksand-alpine"],
- check=False,
- )
+ # Always clean cached workspace builds so uv rebuilds them with
+ # the extracted images and correct platform binaries.
+ subprocess.run(
+ ["uv", "cache", "clean", "quicksand-ubuntu", "quicksand-alpine", "quicksand-qemu"],
+ check=False,
+ )
def pre_build(self) -> None:
"""Install gh CLI on Windows runners (not pre-installed on self-hosted)."""