Remove vendor folder during make clean (#11315)

* Remove vendor folder during make clean
* Add vendor warning to make dev build command
This commit is contained in:
Dave May 2021-10-14 11:32:19 -04:00 committed by GitHub
parent 1bd9db3df0
commit 190716b4c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -241,6 +241,7 @@ dev: hclfmt ## Build for the current development platform
@rm -f $(PROJECT_ROOT)/$(DEV_TARGET) @rm -f $(PROJECT_ROOT)/$(DEV_TARGET)
@rm -f $(PROJECT_ROOT)/bin/nomad @rm -f $(PROJECT_ROOT)/bin/nomad
@rm -f $(GOPATH)/bin/nomad @rm -f $(GOPATH)/bin/nomad
@if [ -d vendor ]; then echo -e "==> WARNING: Found vendor directory. This may cause build errors, consider running 'rm -r vendor' or 'make clean' to remove.\n"; fi
@$(MAKE) --no-print-directory \ @$(MAKE) --no-print-directory \
$(DEV_TARGET) \ $(DEV_TARGET) \
GO_TAGS="$(GO_TAGS) $(NOMAD_UI_TAG)" GO_TAGS="$(GO_TAGS) $(NOMAD_UI_TAG)"
@ -326,6 +327,7 @@ clean: ## Remove build artifacts
@echo "==> Cleaning build artifacts..." @echo "==> Cleaning build artifacts..."
@rm -rf "$(PROJECT_ROOT)/bin/" @rm -rf "$(PROJECT_ROOT)/bin/"
@rm -rf "$(PROJECT_ROOT)/pkg/" @rm -rf "$(PROJECT_ROOT)/pkg/"
@rm -rf "$(PROJECT_ROOT)/vendor/"
@rm -f "$(GOPATH)/bin/nomad" @rm -f "$(GOPATH)/bin/nomad"
.PHONY: testcluster .PHONY: testcluster