Use proper cache for go modules
@@ -25,15 +25,15 @@ jobs:
- checkout
- restore_cache:
keys:
- - go-pkg-cache
+ - go-mod-v1-{{ checksum "go.sum" }}
# Run tests
- run: ./build.sh unit
- run: ./build.sh integration
- save_cache:
- key: go-pkg-cache
+ key: go-mod-v1-{{ checksum "go.sum" }}
paths:
- - "/go/pkg"
+ - "/go/pkg/mod"
workflows:
version: 2
