Skip to content

Commit

Permalink
Don't cache dependencies from different Perl versions
Browse files Browse the repository at this point in the history
  • Loading branch information
judofyr committed Dec 12, 2012
1 parent 26110f3 commit 1289c0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ echo "Using Perl $PERL_VERSION" | indent
if [ -f $BUILD_DIR/Makefile.PL ]; then
echo "-----> Installing dependencies"
VENDOR_DEPS="$BUILD_DIR/vendor/perl-deps"
CACHE_DEPS="$CACHE_DIR/perl-deps"
CACHE_DEPS="$CACHE_DIR/$PERL_VERSION/perl-deps"
CPANM="perl -S $(which cpanm) -l $CACHE_DEPS"

mkdir -p "$CACHE_DIR"
$CPANM --notest --installdeps $BUILD_DIR 2>&1 | indent
$CPANM --notest --installdeps "$BUILD_DIR" 2>&1 | indent

cp -R "$CACHE_DEPS" "$VENDOR_DEPS"

Expand Down

0 comments on commit 1289c0e

Please sign in to comment.