Skip to content

Commit

Permalink
Use "go clean" to clean modules (#233)
Browse files Browse the repository at this point in the history
Files downloaded by 'go mod' are not writable (removable).

Use the recommended way of cleaning modules [1]

[1] golang/go#27161 (comment)

Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
  • Loading branch information
amorenoz committed May 25, 2020
1 parent 96cf184 commit 4c3e645
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -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.*
Expand Down

0 comments on commit 4c3e645

Please sign in to comment.