Skip to content

Commit

Permalink
Gradle: Fix dependency cache
Browse files Browse the repository at this point in the history
As part of #135 and this last 1dda7bd
commit I incorrectly removed the 'DEP_CACHE_FOLDER_NAME' variable.
Without this variable set, placing Gradle dependency cache is not
working as expected due to the fact that this 'DEP_CACHE_FOLDER_NAME'
variable is now unbound. And this makes this whole dependency cache
solution not working at all.
  • Loading branch information
ParaskP7 committed Jan 15, 2025
1 parent daf2a4f commit c83f971
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/restore_gradle_dependency_cache
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ echo "Restoring Gradle dependency cache..."
GRADLE_DEP_CACHE="$GRADLE_HOME/dependency-cache"

DEP_CACHE_BASE_FOLDER=$(dirname "$GRADLE_DEP_CACHE")
DEP_CACHE_FOLDER_NAME=$(basename "$GRADLE_DEP_CACHE")

# `save_cache` & `restore_cache` scripts only work if they are called from the same directory
pushd "$DEP_CACHE_BASE_FOLDER"
Expand Down

0 comments on commit c83f971

Please sign in to comment.