Skip to content

Commit 48b7474

Browse files
authoredDec 14, 2023
fix: setup aztec-cli cache (AztecProtocol#3698)
Mount a writeable cache volume for the compiler to use to store libraries it downloads during compilation of contracts.
1 parent cc515da commit 48b7474

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎yarn-project/cli/aztec-cli

+4-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,10 @@ if [[ ! -z "${DEBUG:-}" ]]; then
148148
DOCKER_ENV="$DOCKER_ENV -e DEBUG=$DEBUG"
149149
fi
150150

151-
DOCKER_VOLUME="$DOCKER_VOLUME -v cache:/cache"
151+
COMPILER_CACHE="$HOME/.aztec/cache"
152+
mkdir -p "$COMPILER_CACHE"
153+
DOCKER_VOLUME="$DOCKER_VOLUME -v $COMPILER_CACHE:/cache"
154+
DOCKER_ENV="$DOCKER_ENV -e XDG_CACHE_HOME=/cache"
152155

153156
$DOCKER_PATH run \
154157
--rm \

0 commit comments

Comments
 (0)