Skip to content

Commit

Permalink
fix(compile): clear Composer's cache before installation
Browse files Browse the repository at this point in the history
  • Loading branch information
R.M. Kleywegt committed Sep 3, 2018
1 parent 1875d18 commit c50212e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,8 @@ unset COMPOSER_GITHUB_OAUTH_TOKEN
export_env_dir "$env_dir" '^[A-Z_][A-Z0-9_]*$' '^(HOME|PATH|GIT_DIR|CPATH|CPPATH|LD_PRELOAD|LIBRARY_PATH|LD_LIBRARY_PATH|STACK|REQUEST_ID|IFS|HEROKU_PHP_INSTALL_DEV|BPLOG_PREFIX|BUILDPACK_LOG_FILE)$'
if cat "$COMPOSER" | python -c 'import sys,json; sys.exit(not json.load(sys.stdin));'; then
install_log=$(mktemp -t heroku-buildpack-php-composer-install-log-XXXX)
composer clearcache
# add -vvv to composer install show diagnostics
composer install ${HEROKU_PHP_INSTALL_DEV-"--no-dev"} --prefer-dist --optimize-autoloader --no-interaction 2>&1 | tee "$install_log" | indent || {
code=$?
if [[ $code -eq 2 ]]; then
Expand Down

0 comments on commit c50212e

Please sign in to comment.