From de15d02f3973328a6a992aa5b0bb63e41a71a54c Mon Sep 17 00:00:00 2001 From: Dexter Yan Date: Mon, 2 Dec 2024 18:27:33 +1300 Subject: [PATCH] fix(make): improve generate cmd for go mod (#1699) --- 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