Skip to content

Commit de15d02

Browse files
authored
fix(make): improve generate cmd for go mod (#1699)
1 parent 8e26470 commit de15d02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,15 @@ generate: controller-gen client-gen
133133
$(CONTROLLER_GEN) \
134134
object:headerFile=./hack/boilerplate.go.txt paths=./pkg/apis/...
135135
$(CLIENT_GEN) \
136-
--output-base=$$(pwd)/../../../ \
136+
--output-base=. \
137137
--output-package=github.com/replicatedhq/troubleshoot/pkg/client \
138138
--clientset-name troubleshootclientset \
139139
--input-base github.com/replicatedhq/troubleshoot/pkg/apis \
140140
--input troubleshoot/v1beta1 \
141141
--input troubleshoot/v1beta2 \
142142
-h ./hack/boilerplate.go.txt
143+
cp -r github.com/replicatedhq/troubleshoot/pkg/client/troubleshootclientset pkg/client
144+
rm -rf github.com
143145

144146
.PHONY: openapischema
145147
openapischema: controller-gen

0 commit comments

Comments
 (0)