From 967a5c24ad62bbe0d0f85f2ba1158b8ca71e25d8 Mon Sep 17 00:00:00 2001 From: Dexter Yan Date: Mon, 2 Dec 2024 15:47:31 +1300 Subject: [PATCH] fix(make): improve generate cmd for go mod --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6dbbe16f3..3cdc6edec 100644 --- a/Makefile +++ b/Makefile @@ -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