Open helinwang opened 6 years ago
I update related codes in #565 , but maybe the pr is too large to review. And I'll submit several requests to solve the problem.
An easy to avoid the problem is to skip pkg dir when running go test
.
@m3ngyang Thanks for your reply! The PR https://github.com/PaddlePaddle/cloud/pull/565 does not contain documentation for how to generate the CRD code. I think we need the documentation for that. It would be great if you can write a documentation for it since you are the one that most familiar with CRD. I will review for you.
In this case we should either have a document about how to generate the CRD code to make go test $(glide nv)
pass, or have a document saying why go test $(glide nv)
fails and please ignore the failure message for the CRD package. I think the former is the better solution.
ok, I will submit a pr to describe how to generate codes for crd in this readme doc
Currently
go test $(glide novendor)
fails with the output:This is due to the Kubernets CRD need developer to run code generation commands before the code could compile.
I tried to follow the commands in https://github.com/PaddlePaddle/cloud/blob/develop/.travis.yml#L15-L18 but
go test $(glide novendor)
still failed with:I guess this is due to
go get k8s.io/kubernetes
used in the generation process is not tagged to a specific version.Could we document how to reliably generate the required code, so that other developers could test all packages inside
go
folder without running into error? Thanks!CC: @m3ngyang : could you take a look? Thanks for contributing!