Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ commands:
md5sum tools.mk >> /tmp/mod-checksums.txt
- restore_cache:
keys:
- v1-go-mod-{{ arch }}-{{ checksum "/tmp/mod-checksums.txt" }}
- v2-go-mod-{{ arch }}-{{ checksum "/tmp/mod-checksums.txt" }}
# Fallback to the most recently-generated cache if an exact match
# does not exist.
- v2-go-mod-
- v1-go-mod-
- run:
name: go mod download
command: |
Expand All @@ -23,10 +27,11 @@ commands:
name: Install tools
command: make install-tools
- save_cache:
key: v1-go-mod-{{ arch }}-{{ checksum "/tmp/mod-checksums.txt" }}
key: v2-go-mod-{{ arch }}-{{ checksum "/tmp/mod-checksums.txt" }}
paths:
- /home/circleci/go/pkg/mod
- /home/circleci/go/bin
- /home/circleci/.cache/go-build
jobs:
test:
docker:
Expand Down