Skip to content

Commit

Permalink
fix: setup aztec-cli cache (AztecProtocol#3698)
Browse files Browse the repository at this point in the history
Mount a writeable cache volume for the compiler to use to store
libraries it downloads during compilation of contracts.
  • Loading branch information
alexghr authored Dec 14, 2023
1 parent cc515da commit 48b7474
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion yarn-project/cli/aztec-cli
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ if [[ ! -z "${DEBUG:-}" ]]; then
DOCKER_ENV="$DOCKER_ENV -e DEBUG=$DEBUG"
fi

DOCKER_VOLUME="$DOCKER_VOLUME -v cache:/cache"
COMPILER_CACHE="$HOME/.aztec/cache"
mkdir -p "$COMPILER_CACHE"
DOCKER_VOLUME="$DOCKER_VOLUME -v $COMPILER_CACHE:/cache"
DOCKER_ENV="$DOCKER_ENV -e XDG_CACHE_HOME=/cache"

$DOCKER_PATH run \
--rm \
Expand Down

0 comments on commit 48b7474

Please sign in to comment.