Skip to content

Commit e414d69

Browse files
committed
Fix cache naming
1 parent 9eb0802 commit e414d69

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.circleci/config.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
- checkout
2828
- restore_cache: # ensure this step occurs *before* installing dependencies
2929
keys:
30-
- v2-dependency-cache-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
31-
- v2-dependency-cache-{{ .Branch }}-
32-
- v2-dependency-cache-
30+
- v{{ .Environment.CACHE_VERSION }}-dep-cache-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
31+
- v{{ .Environment.CACHE_VERSION }}-dep-cache-{{ .Branch }}-
32+
- v{{ .Environment.CACHE_VERSION }}-dep-cache-
3333
- run:
3434
command: |
3535
pip install --user pipenv
@@ -38,7 +38,7 @@ jobs:
3838
paths:
3939
- ".venv"
4040
- ~/.local/share/virtualenvs/
41-
key: v2-dependency-cache-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
41+
key: v{{ .Environment.CACHE_VERSION }}-dep-cache-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
4242
- run:
4343
command: |
4444
pipenv run "pytest"
@@ -53,9 +53,9 @@ jobs:
5353
- checkout
5454
- restore_cache: # ensure this step occurs *before* installing dependencies
5555
keys:
56-
- v2-dependency-cache-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
57-
- v2-dependency-cache-{{ .Branch }}-
58-
- v2-dependency-cache-
56+
- v{{ .Environment.CACHE_VERSION }}-dep-cache-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
57+
- v{{ .Environment.CACHE_VERSION }}-dep-cache-{{ .Branch }}-
58+
- v{{ .Environment.CACHE_VERSION }}-dep-cache-
5959
- run:
6060
command: |
6161
pip install --user pipenv
@@ -64,7 +64,7 @@ jobs:
6464
paths:
6565
- ".venv"
6666
- ~/.local/share/virtualenvs/
67-
key: v2-dependency-cache-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
67+
key: v{{ .Environment.CACHE_VERSION }}-dep-cache-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
6868
- run:
6969
name: verify git tag vs. version
7070
command: |

0 commit comments

Comments
 (0)