fix(circleci): Fixing the glide/vendor cache so it is used by glide

This commit does a few things:
* It moves the information being cached to be the glide cache.
  This will make the glide install process faster.
* The cache is restored from prior to installing the dependencies.
pull/3071/head
Matt Farina 7 years ago
parent 441758b206
commit 4c7617a76e
No known key found for this signature in database
GPG Key ID: CDBDE65D3E544BF3

@ -10,13 +10,17 @@ jobs:
steps:
- checkout
- setup_remote_docker
- restore_cache:
keys:
- glide-{{ checksum "glide.yaml" }}-{{ checksum "glide.lock" }}
- glide- # used as a fall through if the checksum fails to find exact entry
- run:
name: install dependencies
command: make bootstrap
- save_cache:
key: vendor-{{ checksum "glide.yaml" }}-{{ checksum "glide.lock" }}
key: glide-{{ checksum "glide.yaml" }}-{{ checksum "glide.lock" }}
paths:
- vendor
- /root/.glide # Where the glide cache is stored
- run:
name: test
command: .circleci/test.sh

4
glide.lock generated

@ -1,5 +1,5 @@
hash: 650f1d4cd9e9dc5ba76480a5465923ce1bbd11b8fa956b644aaf975e8f7e1f33
updated: 2017-10-12T13:08:50.435765-07:00
hash: 397d714c3a444071879981d3e6575931bd637166e845c6577eaea08ffde7e33d
updated: 2017-10-27T11:04:22.887120936-04:00
imports:
- name: cloud.google.com/go
version: 3b1ae45394a234c385be014e9a488f2bb6eef821

Loading…
Cancel
Save