Skip to content
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

Solving failure: No versions of k8s.io/klog met constraints: #161

Closed
AloofJr opened this issue Jun 10, 2020 · 3 comments
Closed

Solving failure: No versions of k8s.io/klog met constraints: #161

AloofJr opened this issue Jun 10, 2020 · 3 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@AloofJr
Copy link

AloofJr commented Jun 10, 2020

/kind bug

What steps did you take and what happened:
[A clear and concise description of what the bug is.]
after
kubebuilder init --domain k8s.io
dep ensure -v

Solving failure: No versions of k8s.io/klog met constraints: v2.1.0: Could not introduce k8s.io/klog@v2.1.0, as its subpackage k8s.io/klog/v2 is missing. (Package is required by k8s.io/gengo@master.) 2.1.0: Could not introduce k8s.io/klog@2.1.0, as its subpackage k8s.io/klog/v2 is missing. (Package is required by k8s.io/gengo@master.) v2.0.0: Could not introduce k8s.io/klog@v2.0.0, as its subpackage k8s.io/klog/v2 is missing. (Package is required by k8s.io/gengo@master.) v1.0.0: Could not introduce k8s.io/klog@v1.0.0, as its subpackage k8s.io/klog/v2 is missing. (Package is required by k8s.io/gengo@master.) v0.4.0: Could not introduce k8s.io/klog@v0.4.0, as its subpackage k8s.io/klog/v2 is missing. (Package is required by k8s.io/gengo@master.) v0.3.3: Could not introduce k8s.io/klog@v0.3.3, as its subpackage k8s.io/klog/v2 is missing. (Package is required by k8s.io/gengo@master.) v0.3.2: Could not introduce k8s.io/klog@v0.3.2, as its subpackage k8s.io/klog/v2 is missing. (Package is required by k8s.io/gengo@master.) v0.3.1: Could not introduce k8s.io/klog@v0.3.1, as its subpackage k8s.io/klog/v2 is missing. (Package is required by k8s.io/gengo@master.) v0.3.0: Could not introduce k8s.io/klog@v0.3.0, as its subpackage k8s.io/klog/v2 is missing. (Package is required by k8s.io/gengo@master.) v0.2.0: Could not introduce k8s.io/klog@v0.2.0, as its subpackage k8s.io/klog/v2 is missing. (Package is required by k8s.io/gengo@master.) v0.1.0: Could not introduce k8s.io/klog@v0.1.0, as its subpackage k8s.io/klog/v2 is missing. (Package is required by k8s.io/gengo@master.) v2.0.0-rc.1: Could not introduce k8s.io/klog@v2.0.0-rc.1, as its subpackage k8s.io/klog/v2 is missing. (Package is required by k8s.io/gengo@master.) master: Could not introduce k8s.io/klog@master, as its subpackage k8s.io/klog/v2 is missing. (Package is required by k8s.io/gengo@master.) dims-patch-1: Could not introduce k8s.io/klog@dims-patch-1, as its subpackage k8s.io/klog/v2 is missing. (Package is required by k8s.io/gengo@master.) fix_typo: Could not introduce k8s.io/klog@fix_typo, as its subpackage k8s.io/klog/v2 is missing. (Package is required by k8s.io/gengo@master.) flag_defaults: Could not introduce k8s.io/klog@flag_defaults, as its subpackage k8s.io/klog/v2 is missing. (Package is required by k8s.io/gengo@master.) release-1.x: Could not introduce k8s.io/klog@release-1.x, as its subpackage k8s.io/klog/v2 is missing. (Package is required by k8s.io/gengo@master.)

i find #138 it‘s a bug in klog/v2.0.0 ,but k8s.io/klog@v2.1.0 also has this problem

go version : go1.14.3 darwin/amd64 dep version: v0.5.4 kubebuilder version:v2.3.1
What did you expect to happen:
can use kubebuilder init --domain k8s.io

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jun 10, 2020
@david-enli
Copy link

running into same issue, do we have a timeline when this will be fixed

@nikhita
Copy link
Member

nikhita commented Jun 16, 2020

@AloofJr Thanks for reporting the bug!

This occurs due to a bug in dep (golang/dep#2139, golang/dep#1962) and might be better tracked in kubernetes-sigs/kubebuilder#1557 since it depends on the way kubebuilder uses dep.

dep doesn't support import path suffixes like /vN because k8s.io/klog/v2 is not in the physical path and it doesn't have minimal module awareness. There are two solutions here:

In either case, the changes will need to be made in kubebuilder. I'll close this issue in favor of kubernetes-sigs/kubebuilder#1557. Let's continue the discussion there. 👍

/close

@k8s-ci-robot
Copy link

@nikhita: Closing this issue.

In response to this:

@AloofJr Thanks for reporting the bug!

This occurs due to a bug in dep (golang/dep#2139, golang/dep#1962) and might be better tracked in kubernetes-sigs/kubebuilder#1557 since it depends on the way kubebuilder uses dep.

dep doesn't support import path suffixes like /vN because k8s.io/klog/v2 is not in the physical path and it doesn't have minimal module awareness. There are two solutions here:

In either case, the changes will need to be made in kubebuilder. I'll close this issue in favor of kubernetes-sigs/kubebuilder#1557.

/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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants