busted go get's with go modules
jmhodges opened this issue · comments
When installing various pieces of k8s tools, I keep running into this error from go get
(and its module support):
$ go get -d github.com/rancher/rancher
[.. elided ..]
go: k8s.io/kubernetes@v1.16.1 requires
k8s.io/api@v0.0.0: reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0
(This feels like maybe a tag got made that wasn't supposed to?)
This is an issue with github.com/rancher/rancher
importing k8s.io/kubernetes@v1.16.1
. Instead it should be importing component libraries directly:
- do this:
import k8s.io/api
- not this:
import k8s.io/kubernetes/pkg/api
- context: kubernetes/kubernetes#81878
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen
.
Mark the issue as fresh with /remove-lifecycle rotten
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close
@fejta-bot: Closing this issue.
In response to this:
Rotten issues close after 30d of inactivity.
Reopen the issue with/reopen
.
Mark the issue as fresh with/remove-lifecycle rotten
.Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/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.
Get the same issue when initing the go.mod
. How to fix it? Thanks!
mac:openshift-tests-private jianzhang$ go build ./...
go: finding github.com/openshift/openshift-tests latest
go: finding github.com/openshift/library-go latest
go: finding github.com/RangelReale/osincli latest
go: k8s.io/kubernetes@v1.18.1 requires
k8s.io/api@v0.0.0: reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0