Skip to content

Commit

Permalink
Add an environment variable to bust the package
Browse files Browse the repository at this point in the history
See here: pypa/pip#7217 (comment)

Basically, an internal change was made to Pip, but because the dependencies are cached, we're using a new verison of Pip with old dependencies which causes issues.
  • Loading branch information
euantorano committed Oct 23, 2019
1 parent e56f41d commit e17fd92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
- last_image_versions
- restore_cache: # ensure this step occurs *before* installing dependencies
name: restore dependency cache
key: deps-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
key: deps-{{ .Environment.DEPS_CACHE_VERSION }}-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
- run:
name: install dependencies
command: |
sudo pip install pipenv
pipenv install
- save_cache:
name: save dependency cache
key: deps-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
key: deps-{{ .Environment.DEPS_CACHE_VERSION }}-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
paths:
- ".venv"
- "/usr/local/bin"
Expand Down Expand Up @@ -62,4 +62,4 @@ workflows:
only:
- master
jobs:
- build
- build

0 comments on commit e17fd92

Please sign in to comment.