Skip to content

Commit

Permalink
Include internal/tools/go.sum in the cache key (open-telemetry#2696)
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
  • Loading branch information
bogdandrutu authored Mar 22, 2021
1 parent 73d1afa commit 8c3c810
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ commands:
save_module_cache:
steps:
- save_cache:
key: cimg-go-pkg-mod-{{ arch }}-{{ checksum "go.sum" }}
key: cimg-go-pkg-mod-{{ arch }}-{{ checksum "go.sum" }}-{{ checksum "internal/tools/go.sum" }}
paths:
- "/home/circleci/go/pkg/mod"

Expand All @@ -101,7 +101,7 @@ commands:
command: mkdir -p ~/go/pkg/mod
- restore_cache: # restores saved cache if no changes are detected since last run
keys:
- cimg-go-pkg-mod-{{ arch }}-{{ checksum "go.sum" }}
- cimg-go-pkg-mod-{{ arch }}-{{ checksum "go.sum" }}-{{ checksum "internal/tools/go.sum" }}

publish_docker_images:
parameters:
Expand Down

0 comments on commit 8c3c810

Please sign in to comment.