Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
build: add cleaning up go vendor directories
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgacsal committed Feb 22, 2024
1 parent d8116a7 commit cd91a29
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ bin/vmclarity-cr-discovery-server: $(shell find api containerruntimediscovery/se
cd containerruntimediscovery/server && go build $(BUILD_OPTS) -ldflags="$(LDFLAGS)" -o $(ROOT_DIR)/$@ cmd/main.go

.PHONY: clean
clean: clean-ui clean-go ## Clean all build artifacts
clean: clean-ui clean-go clean-vendor ## Clean all build artifacts

.PHONY: clean-go
clean-go: ## Clean all Go build artifacts
Expand All @@ -96,6 +96,11 @@ clean-ui: ## Clean UI build
@rm -rf ui/build
$(info UI cleanup done)

.PHONY: clean-vendor
clean-vendor: ## Clean go vendor directories
$(info Clean go vendor directories)
@find $(ROOT_DIR) -name 'vendor' -type d -exec rm -rf {} \;

.PHONY: $(LINTGOMODULES)
TIDYGOMODULES = $(addprefix tidy-, $(GOMODULES))

Expand Down

0 comments on commit cd91a29

Please sign in to comment.