Skip to content

Commit

Permalink
reordered save cache, added back explicit go mod download
Browse files Browse the repository at this point in the history
  • Loading branch information
cotarg committed Oct 9, 2019
1 parent 247f8be commit a4eac1c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@ jobs:
- restore_cache: # restore cache from dev-build job
keys:
- go-version-modcache-v1-{{ checksum "go.mod" }}
- go-version-modcache-v1

- run: go mod download

# Save go module cache if the go.mod file has changed
- save_cache:
key: go-version-modcache-v1-{{ checksum "go.mod" }}
paths:
- "/go/pkg/mod"

# check go fmt output because it does not report non-zero when there are fmt changes
- run:
Expand All @@ -46,12 +53,6 @@ jobs:
- store_artifacts:
path: *TEST_RESULTS_PATH

# Save go module cache if the go.mod file has changed
- save_cache:
key: go-version-modcache-v1-{{ checksum "go.mod" }}
paths:
- "/go/pkg/mod"

workflows:
version: 2
test-and-build:
Expand Down

0 comments on commit a4eac1c

Please sign in to comment.