Skip to content

Commit

Permalink
Merge pull request #30847 from hashicorp/f-add-clean-make-target
Browse files Browse the repository at this point in the history
make: Add clean target
  • Loading branch information
YakDriver authored Apr 20, 2023
2 parents bc92463 + c3077e7 commit d9b69ff
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,18 @@ default: build
build: fmtcheck
$(GO_VER) install

cleango:
@echo "==> Cleaning Go..."
@echo "WARNING: This will kill gopls and clean Go caches"
@processes=`pgrep gopls` ; \
for proc in $$processes ; do \
echo "Killing gopls process $$proc" ; \
kill -9 $$proc ; \
done ; \
go clean -modcache -testcache -cache ; \

clean: cleango build tools

depscheck:
@echo "==> Checking source code with go mod tidy..."
@$(GO_VER) mod tidy
Expand Down

0 comments on commit d9b69ff

Please sign in to comment.