New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add controller tools back #293
Add controller tools back #293
Conversation
I did a go mod download and then ran go run sigs.k8s.io/controller-tools/cmd/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..." and got ../../../../go/pkg/mod/sigs.k8s.io/controller-tools@v0.9.2/cmd/controller-gen/main.go:25:2: missing go.sum entry for module providing package github.com/spf13/cobra (imported by sigs.k8s.io/controller-tools/cmd/controller-gen); to add: This is from a brand new clone of sandboxed-container-operator with the PR branch checked out. Either something changed or I missed a go get command the last time. Not sure why we didn't see this previously. Maybe everyone had a dirty test env. |
I don't see that problem, even with a fresh checkout |
@jensfr: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Thanks @jensfr
Added a reference issue to fix it in code - #294 |
I hit exactly the same error and if I do
@cpmeadors I've reset hard to the merge commit of #286 :
It seems that the extra |
Travelling back today and probably won't get to this. Feel free to send another PR to fix this |
Signed-off-by: Jens Freimann <jfreimann@redhat.com> [greg: run go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.9.2 ] Signed-off-by: Greg Kurz <groug@kaod.org>
4560e24
to
c57f854
Compare
New changes are detected. LGTM label has been removed. |
Since your PR has |
Nice, thank you @gkurz |
Description of the problem which is fixed/What is the use case
Downstream Red Hat builds require controller-tools to be in the go.mod so they can be cached due to network limitations. They can easily be removed accidentally with go mod tidy because they are not actually dependencies.
What I did
go get sigs.k8s.io/controller-tools@v0.9.2
go get sigs.k8s.io/controller-tools/pkg/genall/help/pretty@v0.9.2
go get sigs.k8s.io/controller-tools/pkg/crd@v0.9.2
Edit: had to also do this (Greg)
go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.9.2
How to verify it
go run sigs.k8s.io/controller-tools/cmd/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./...""
Description for the changelog