From 4c3e6452271b64c7613bf5a41faea23c3a51606a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Moreno?= <52785490+amorenoz@users.noreply.github.com> Date: Mon, 25 May 2020 12:36:56 +0200 Subject: [PATCH] Use "go clean" to clean modules (#233) Files downloaded by 'go mod' are not writable (removable). Use the recommended way of cleaning modules [1] [1] https://github.com/golang/go/issues/27161#issuecomment-415213240 Signed-off-by: Adrian Moreno --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index d22105b37..fd9810b65 100644 --- a/Makefile +++ b/Makefile @@ -153,6 +153,7 @@ image: | $(BASE) ; $(info Building Docker image...) .PHONY: clean clean: ; $(info Cleaning...) @ ## Cleanup everything + @go clean --modcache @rm -rf $(GOPATH) @rm -rf $(BUILDDIR)/$(BINARY_NAME) @rm -rf test/tests.* test/coverage.*