dade-collect-garbage to delete ~/.bazel-cache as part of the cleanup (#1061)

This commit is contained in:
Leonid Shlyapnikov 2019-05-09 16:09:29 -04:00 committed by GitHub
parent 7672b91ae6
commit 50bab729d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,12 @@
#!/usr/bin/env bash
DADE_CURRENT_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BASEL_CACHE_DIR="${DADE_CURRENT_SCRIPT_DIR}/../../.bazel-cache"
source "$DADE_CURRENT_SCRIPT_DIR/../lib/dade-common"
echo "Cleaning nix cache..."
nix-store --gc
echo "Deleting bazel cache: ${BASEL_CACHE_DIR}..."
rm -rf "${BASEL_CACHE_DIR}"
echo "Done."