From d9f78162e7b0abd92396fbe4c65d198bb00a3551 Mon Sep 17 00:00:00 2001 From: Willem van den Ende Date: Thu, 1 Oct 2026 12:47:45 +0100 Subject: [PATCH] Redirect Maven/uv caches into workspace (sandbox-safe mise env) --- .gitignore | 3 +++ java/mise.toml | 4 ++++ python/mise.toml | 5 +++++ 3 files changed, 12 insertions(+) diff --git a/.gitignore b/.gitignore index 0bb13b6..025fecb 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ TestResults/ ## Java target/ +.m2repo/ ## Python __pycache__/ @@ -29,3 +30,5 @@ __pycache__/ .venv/ .pytest_cache/ .ruff_cache/ +.uv-cache/ +.uv-managed-python/ diff --git a/java/mise.toml b/java/mise.toml index ddcb511..9b1231b 100644 --- a/java/mise.toml +++ b/java/mise.toml @@ -1,3 +1,7 @@ [tools] java = "temurin-21.0.9+10.0.LTS" maven = "3.9.16" + +[env] +# Keep the Maven local repository inside the workspace (sandboxes often block ~/.m2) +MAVEN_OPTS = "-Dmaven.repo.local=.m2repo" diff --git a/python/mise.toml b/python/mise.toml index 509612f..cda0a11 100644 --- a/python/mise.toml +++ b/python/mise.toml @@ -1,3 +1,8 @@ [tools] python = "3.13.16" uv = "0.12.21" + +[env] +# Keep uv caches/installs inside the workspace (sandboxes often block ~/.local/share/uv) +UV_CACHE_DIR = "./.uv-cache" +UV_PYTHON_INSTALL_DIR = "./.uv-managed-python"