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
k8s.io/api@v0.0.0: reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0 #90358
Comments
This is caused by depending on k8s.io/kubernetes directly as a library, which is not supported. The components intended to be used as libraries are published as standalone modules like k8s.io/api, k8s.io/apimachinery, k8s.io/client-go, etc, and can be referenced directly. If you want to do this anyway, see discussion in #79384 about how you can workaround the v0.0.0 requirements. |
go: k8s.io/kubernetes@v1.21.0 requires |
Importing `k8s.io/kubernetes` as a library is not supported, the one error we're importing from there we can inline and have a simpler dependency graph as an outcome. See kubernetes/kubernetes#90358 (comment)
Followup from reading through kubernetes/kubernetes#90358 Signed-off-by: astoycos <astoycos@redhat.com>
What happened:
go mod tidy
What you expected to happen:
go mod tidy command Install dependencies
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl version
):cat /etc/os-release
):uname -a
):go 1.14
/sig Release
The text was updated successfully, but these errors were encountered: