File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,28 @@ parameters:
1212 description : " Whether to use go-build cache."
1313 type : boolean
1414 default : true
15+ build-path :
16+ description : " Location of go-build cache."
17+ type : string
18+ default : " /home/circleci/.cache/go-build"
1519 mod :
1620 description : |
1721 Whether to use go module cache. If most of your dependencies are public, it is faster to use the public
1822 Go module proxy, so this defaults to `false`.
1923 type : boolean
2024 default : false
25+ mod-path :
26+ description : " Location of go module cache."
27+ type : string
28+ default : " /home/circleci/go/pkg/mod"
2129 golangci-lint :
2230 description : " Whether to use golangci-lint cache. Useful only in steps with linting, so defaults to false."
2331 type : boolean
2432 default : false
33+ golangci-lint-path :
34+ description : " Location of golangci-lint cache."
35+ type : string
36+ default : " /home/circleci/.cache/golangci-lint"
2537steps :
2638 - when :
2739 condition : << parameters.build >>
@@ -44,13 +56,16 @@ steps:
4456 steps :
4557 - save-build-cache :
4658 key : << parameters.key >>
59+ path : << parameters.build-path >>
4760 - when :
4861 condition : << parameters.mod >>
4962 steps :
5063 - save-mod-cache :
5164 key : << parameters.key >>
65+ path : << parameters.mod-path >>
5266 - when :
5367 condition : << parameters.golangci-lint >>
5468 steps :
5569 - save-golangci-lint-cache :
5670 key : << parameters.key >>
71+ path : << parameters.golangci-lint-path >>
You can’t perform that action at this time.
0 commit comments