From ef43fee9249abfbd837c3acde9c3bf9924639629 Mon Sep 17 00:00:00 2001 From: Anish Asthana Date: Fri, 28 Jul 2023 08:02:34 -0400 Subject: [PATCH] Organize go imports for generated files Signed-off-by: Anish Asthana --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bb9b8ac9..a4f47970 100644 --- a/Makefile +++ b/Makefile @@ -173,8 +173,11 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations. $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..." -.PHONY: generate-client ## Generate client packages -generate-client: code-generator +.PHONY: generate-client ## Generate client packages and organize the goimports +generate-client: generate-client-files imports + +.PHONY: generate-client-files +generate-client-files: code-generator rm -rf client $(APPLYCONFIGURATION_GEN) \ --input-dirs="github.com/project-codeflare/codeflare-operator/api/codeflare/v1alpha1" \