@@ -333,7 +333,7 @@ local task_build_push_image(push) =
333333 },
334334 steps: [
335335 { type: 'clone' },
336- { type: 'restore_cache' , keys: ['cache-sum-{{ md5sum "go.sum" }}' , 'cache-date-' ], dest_dir: '/go/pkg/mod/cache' },
336+ { type: 'restore_cache' , keys: ['cache-sum-1- {{ md5sum "go.sum" }}' , 'cache-date-1 -' ], dest_dir: '/go/pkg/mod/cache' },
337337
338338 { type: 'run' , name: 'clone gitleaks' , command: 'git clone https://github.com/gitleaks/gitleaks.git ../gitleaks' },
339339 { type: 'run' , name: 'build gitleaks' , command: 'cd ../gitleaks; make build; echo ${GITLEAKS_CONF} > gitleaks.toml' },
@@ -346,8 +346,8 @@ local task_build_push_image(push) =
346346 { type: 'run' , name: '' , command: 'go generate -v ./...' },
347347 { type: 'run' , name: '' , command: 'go test -race -coverprofile=coverage.txt -covermode=atomic ./...' },
348348
349- { type: 'save_cache' , key: 'cache-sum-{{ md5sum "go.sum" }}' , contents: [{ source_dir: '/go/pkg/mod/cache' }] },
350- { type: 'save_cache' , key: 'cache-date-{{ year }}-{{ month }}-{{ day }}' , contents: [{ source_dir: '/go/pkg/mod/cache' }] },
349+ { type: 'save_cache' , key: 'cache-sum-1- {{ md5sum "go.sum" }}' , contents: [{ source_dir: '/go/pkg/mod/cache' }] },
350+ { type: 'save_cache' , key: 'cache-date-1- {{ year }}-{{ month }}-{{ day }}' , contents: [{ source_dir: '/go/pkg/mod/cache' }] },
351351 ],
352352 },
353353 ] + [
0 commit comments