Adding a counter to the dependencies cache

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>
pull/8185/head
Matt Farina 5 years ago
parent 250f54a831
commit 453ded0f2f
No known key found for this signature in database
GPG Key ID: 9436E80BFBA46909

@ -13,13 +13,13 @@ jobs:
version: 18.06.0-ce version: 18.06.0-ce
- restore_cache: - restore_cache:
keys: keys:
- glide-{{ checksum "glide.yaml" }}-{{ checksum "glide.lock" }} - glide-2-{{ checksum "glide.yaml" }}-{{ checksum "glide.lock" }}
- glide- # used as a fall through if the checksum fails to find exact entry - glide-2- # used as a fall through if the checksum fails to find exact entry
- run: - run:
name: install dependencies name: install dependencies
command: .circleci/bootstrap.sh command: .circleci/bootstrap.sh
- save_cache: - save_cache:
key: glide-{{ checksum "glide.yaml" }}-{{ checksum "glide.lock" }} key: glide-2-{{ checksum "glide.yaml" }}-{{ checksum "glide.lock" }}
paths: paths:
- /root/.glide # Where the glide cache is stored - /root/.glide # Where the glide cache is stored
- run: - run:

Loading…
Cancel
Save