Makefile: clean golangci-lint cache on make clean

To speedup `make lint` we use a local cache.
It seems that there is no sane way to check and just
update the cache, so we'll just provide an option to wipe it.

Using the cache does reduce the time of `make lint` from
1 minute 15sec to 1 sec on my PC. So for consecutive runs,
the cache still makes sense.
This commit is contained in:
Florian Schüller 2024-10-28 11:05:59 +01:00 committed by Florian Schüller
parent a7cd521325
commit 69525b7ce6

View file

@ -169,6 +169,7 @@ clean:
rm -rf $(CURDIR)/rpmbuild
rm -rf container_composer_golangci_built.info
rm -rf $(BUILDDIR)/$(PROCESSED_TEMPLATE_DIR)
rm -rf $(GOLANGCI_LINT_CACHE_DIR)
.PHONY: push-check
push-check: lint build unit-tests srpm man