Skip to content

Commit 25500b1

Browse files
Add make clean-gocache
Signed-off-by: Juan-Luis de Sousa-Valadas Castaño <[email protected]>
1 parent f64a009 commit 25500b1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,8 @@ GO_LINT_DIRS ?= $(shell ls -d */ | grep -v build/)
5252
lint: .rigbuild.docker-image.k0s
5353
$(GO) install github.com/golangci/golangci-lint/cmd/[email protected]
5454
$(GO_ENV) golangci-lint run --verbose --build-tags=$(subst $(space),$(comma),$(BUILD_GO_TAGS)) $(GOLANGCI_LINT_FLAGS) $(GO_LINT_DIRS)
55+
56+
.PHONY: clean-gocache
57+
clean-gocache:
58+
-chmod -R u+w -- '$(RIG_GO_BUILD_CACHE)/go/mod'
59+
rm -rf -- '$(RIG_GO_BUILD_CACHE)/go'

0 commit comments

Comments
 (0)