Skip to content

Commit

Permalink
sandbox: respect the DUNE_CACHE_ROOT environment variable if it exists
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto committed Dec 5, 2024
1 parent 75f9eec commit 7423bf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ users)
## Format upgrade

## Sandbox
* Respect the `DUNE_CACHE_ROOT` environment variable if it exists [#6326 @smorimoto]

## VCS

Expand Down
2 changes: 1 addition & 1 deletion src/state/shellscripts/sandbox_exec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ add_ccache_mount() {
}

add_dune_cache_mount() {
local dune_cache=${XDG_CACHE_HOME:-$HOME/.cache}/dune
local dune_cache=${DUNE_CACHE_ROOT:-${XDG_CACHE_HOME:-$HOME/.cache}/dune}
mkdir -p "${dune_cache}"
add_mounts rw "$dune_cache"
}
Expand Down

0 comments on commit 7423bf4

Please sign in to comment.