From dac7c90483705a4839fb0c31ecad5c806fcc43d4 Mon Sep 17 00:00:00 2001 From: Anthony HAMON Date: Tue, 28 Aug 2018 21:28:55 +0200 Subject: [PATCH] add cache based on Gopkg.lock checksum --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d60eadaab..16bafdb58 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,7 +9,7 @@ jobs: - checkout - restore_cache: keys: - - v1-pkg-cache + - pkg-cache-{{ checksum "Gopkg.lock" }} - run: name: Run gofmt -s command: | @@ -31,7 +31,7 @@ jobs: command: | bash <(curl -s https://codecov.io/bash) - save_cache: - key: v1-pkg-cache + key: pkg-cache-{{ checksum "Gopkg.lock" }} paths: - "/go/pkg"