Skip to content

Commit 214e7f8

Browse files
committed
update circleci config to save mod cache
1 parent f3eb871 commit 214e7f8

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.circleci/config.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,7 @@ jobs:
2525
- restore_cache:
2626
keys:
2727
- go-getter-modcache-v1-{{ checksum "go.mod" }}
28-
29-
# Save go module cache if the go.mod file has changed
30-
- save_cache:
31-
key: go-getter-modcache-v1-{{ checksum "go.mod" }}
32-
paths:
33-
- "/go/pkg/mod"
28+
- go-getter-modcache-v1
3429

3530
# check go fmt output because it does not report non-zero when there are fmt changes
3631
- run:
@@ -52,6 +47,12 @@ jobs:
5247
- store_artifacts:
5348
path: *TEST_RESULTS_PATH
5449

50+
# Save go module cache if the go.mod file has changed
51+
- save_cache:
52+
key: go-getter-modcache-v1-{{ checksum "go.mod" }}
53+
paths:
54+
- "/go/pkg/mod"
55+
5556
workflows:
5657
version: 2
5758
test-and-build:

0 commit comments

Comments
 (0)