Skip to content

Commit

Permalink
fix(make): improve generate cmd for go mod (#1699)
Browse files Browse the repository at this point in the history
  • Loading branch information
DexterYan authored Dec 2, 2024
1 parent 8e26470 commit de15d02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,15 @@ generate: controller-gen client-gen
$(CONTROLLER_GEN) \
object:headerFile=./hack/boilerplate.go.txt paths=./pkg/apis/...
$(CLIENT_GEN) \
--output-base=$$(pwd)/../../../ \
--output-base=. \
--output-package=github.com/replicatedhq/troubleshoot/pkg/client \
--clientset-name troubleshootclientset \
--input-base github.com/replicatedhq/troubleshoot/pkg/apis \
--input troubleshoot/v1beta1 \
--input troubleshoot/v1beta2 \
-h ./hack/boilerplate.go.txt
cp -r github.com/replicatedhq/troubleshoot/pkg/client/troubleshootclientset pkg/client
rm -rf github.com

.PHONY: openapischema
openapischema: controller-gen
Expand Down

0 comments on commit de15d02

Please sign in to comment.