kubernetes / api

The canonical location of the Kubernetes API definition.
Apache License 2.0
655 stars 434 forks source link

busted go get's with go modules #26

Closed jmhodges closed 4 years ago

jmhodges commented 5 years ago

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?)

carnott-snap commented 4 years ago

This is an issue with github.com/rancher/rancher importing k8s.io/kubernetes@v1.16.1. Instead it should be importing component libraries directly:

fejta-bot commented 4 years ago

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

fejta-bot commented 4 years ago

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

fejta-bot commented 4 years ago

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

k8s-ci-robot commented 4 years ago

@fejta-bot: Closing this issue.

In response to [this](https://github.com/kubernetes/api/issues/26#issuecomment-611755801): >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](https://github.com/fejta). >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
jianzhangbjz commented 4 years ago

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