From 4c7617a76e310fa53473b31b18b371b344da4fef Mon Sep 17 00:00:00 2001 From: Matt Farina Date: Fri, 27 Oct 2017 09:58:34 -0400 Subject: [PATCH] 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. --- .circleci/config.yml | 8 ++++++-- glide.lock | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e7cf729fb..73e734825 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/glide.lock b/glide.lock index cb17642e4..11b56ad2d 100644 --- a/glide.lock +++ b/glide.lock @@ -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