Skip to content

Commit 6061d9d

Browse files
committed
reordered save cache, added back explicit mod download
1 parent 214e7f8 commit 6061d9d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.circleci/config.yml

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

3037
# check go fmt output because it does not report non-zero when there are fmt changes
3138
- run:
@@ -47,12 +54,6 @@ jobs:
4754
- store_artifacts:
4855
path: *TEST_RESULTS_PATH
4956

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-
5657
workflows:
5758
version: 2
5859
test-and-build:

0 commit comments

Comments
 (0)