Skip to content

Commit

Permalink
Organize go imports for generated files
Browse files Browse the repository at this point in the history
Signed-off-by: Anish Asthana <[email protected]>
  • Loading branch information
anishasthana authored and openshift-merge-robot committed Jul 28, 2023
1 parent 223dffe commit ef43fee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit ef43fee

Please sign in to comment.