Skip to content

Commit

Permalink
Adding a counter to the dependencies cache
Browse files Browse the repository at this point in the history
The cache needed to be cleared due to an issue presented when the
source for one dependency moved from one place to another. To
accomplish this we add a counter. This is similar to the recommendation
in the CircleCI documentation on caching

Closes #8184

Signed-off-by: Matt Farina <matt@mattfarina.com>
  • Loading branch information
mattfarina committed May 22, 2020
1 parent 250f54a commit 453ded0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Expand Up @@ -13,13 +13,13 @@ jobs:
version: 18.06.0-ce
- restore_cache:
keys:
- glide-{{ checksum "glide.yaml" }}-{{ checksum "glide.lock" }}
- glide- # used as a fall through if the checksum fails to find exact entry
- glide-2-{{ checksum "glide.yaml" }}-{{ checksum "glide.lock" }}
- glide-2- # used as a fall through if the checksum fails to find exact entry
- run:
name: install dependencies
command: .circleci/bootstrap.sh
- save_cache:
key: glide-{{ checksum "glide.yaml" }}-{{ checksum "glide.lock" }}
key: glide-2-{{ checksum "glide.yaml" }}-{{ checksum "glide.lock" }}
paths:
- /root/.glide # Where the glide cache is stored
- run:
Expand Down

0 comments on commit 453ded0

Please sign in to comment.