Codegen scripts doesnt work outside GOPATH with go mod
yue9944882 opened this issue · 3 comments
yue9944882 commented
if the project is outside of GOPATH directory and with the env var unset, running make update
will generate the whole package path open-cluster-management/api/client/...
in the project. the expected output should be omitting the extra parent paths i.e. client/...
.
one way to fix this is to switch the code-generator to controller-gen which runs perfect in go mod mode.
xuezhaojun commented
A temporary approach: after make update
, run:
cp -rf open-cluster-management.io/api/* ./ && rm -rf open-cluster-management.io
qiujian16 commented
this is fixed
/close
openshift-ci commented
@qiujian16: Closing this issue.
In response to this:
this is fixed
/close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.