Skip to content

Commit ef43fee

Browse files
anishasthanaopenshift-merge-robot
authored andcommitted
Organize go imports for generated files
Signed-off-by: Anish Asthana <[email protected]>
1 parent 223dffe commit ef43fee

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

+5-2
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,11 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust
173173
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
174174
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
175175

176-
.PHONY: generate-client ## Generate client packages
177-
generate-client: code-generator
176+
.PHONY: generate-client ## Generate client packages and organize the goimports
177+
generate-client: generate-client-files imports
178+
179+
.PHONY: generate-client-files
180+
generate-client-files: code-generator
178181
rm -rf client
179182
$(APPLYCONFIGURATION_GEN) \
180183
--input-dirs="github.com/project-codeflare/codeflare-operator/api/codeflare/v1alpha1" \

0 commit comments

Comments
 (0)