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

build: add cleaning up go vendor directories #1349

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading