Skip to content

Commit a7b8468

Browse files
committed
Use "go clean" to clean modules
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]>
1 parent 96cf184 commit a7b8468

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ image: | $(BASE) ; $(info Building Docker image...)
153153

154154
.PHONY: clean
155155
clean: ; $(info Cleaning...) @ ## Cleanup everything
156+
@go clean --modcache
156157
@rm -rf $(GOPATH)
157158
@rm -rf $(BUILDDIR)/$(BINARY_NAME)
158159
@rm -rf test/tests.* test/coverage.*

0 commit comments

Comments
 (0)