Skip to content

Commit

Permalink
Use "go clean" to clean modules
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 <[email protected]>
  • Loading branch information
amorenoz committed May 21, 2020
1 parent 96cf184 commit a7b8468
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
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 a7b8468

Please sign in to comment.