Skip to content
Snippets Groups Projects
Unverified Commit f9e54dc3 authored by Kenneth Reitz's avatar Kenneth Reitz Committed by GitHub
Browse files

don't skip Pipenv installation if there are git deps (#656)

parent 7d975e74
No related branches found
No related tags found
No related merge requests found
......@@ -9,15 +9,18 @@ set -e
if [[ -f Pipfile.lock ]]; then
if [[ -f .heroku/python/Pipfile.lock.sha256 ]]; then
if [[ $(openssl dgst -sha256 Pipfile.lock) == $(cat .heroku/python/Pipfile.lock.sha256) ]]; then
if [[ ! "$PIPENV_ALWAYS_INSTALL" ]]; then
# Measure that we're using Pipenv.
mcount "tool.pipenv"
# Don't skip installation of there are git deps.
if ! grep -q 'git' Pipfile.lock; then
echo "Skipping installation, as Pipfile.lock hasn't changed since last deploy." | indent
# echo "To disable this functionality, run the following command:"
# echo ""
# echo " $ heroku config:set PIPENV_ALWAYS_INSTALL=1" | indent
mcount "tool.pipenv"
export SKIP_PIPENV_INSTALL=1
export SKIP_PIP_INSTALL=1
fi
fi
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment