Skip to content

Commit 5fc4dad

Browse files
committed
cirrus: save/restore golangci-lint cache for linux
This shaves off some time (40 seconds, ~15%) from a validate job (unless either golangci-lint or go version changes). The cache size is pretty small (currently 686Kb compressed). Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 1bc3b14 commit 5fc4dad

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.cirrus.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ validate_task:
5959
image_name: ${DEBIAN_CACHE_IMAGE_NAME}
6060
env:
6161
HOME: "/root" # default unset, needed by golangci-lint.
62+
golangci-lint_cache:
63+
folder: /root/.cache/golangci-lint
64+
reupload_on_changes: true
65+
fingerprint_script:
66+
- go version
67+
- grep GOLANGCI_LINT_VERSION Makefile | head -1
6268
script: |
6369
git remote update
6470
make tools

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ linters:
1414
exclusions:
1515
presets:
1616
- comments
17-
- common-false-positives
17+
# - common-false-positives
1818
- std-error-handling

0 commit comments

Comments
 (0)