Skip to content

Commit

Permalink
Use CACHE_DIR as UV_CACHE_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
davegaeddert committed Aug 29, 2024
1 parent d071b62 commit e0bd3cb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,15 @@ function indent() {
}

export BUILD_DIR="$1"
export CACHE_DIR="$2"
export ENV_DIR="$3"

export UV_LINK_MODE=copy # Default to copy mode (shows a warning otherwise)
export UV_CACHE_DIR="$CACHE_DIR"

# Make sure the CACHE_DIR exists
# https://devcenter.heroku.com/articles/buildpack-api#caching
mkdir -p "$CACHE_DIR"

REQUIREMENTS_FILE="requirements.txt"
REQUIREMENTS_TEST_FILE="requirements-test.txt"
Expand Down

0 comments on commit e0bd3cb

Please sign in to comment.