Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Failed to fetch common module #70

Closed
Jeffwan opened this issue Apr 14, 2020 · 10 comments
Closed

Failed to fetch common module #70

Jeffwan opened this issue Apr 14, 2020 · 10 comments
Assignees
Labels

Comments

@Jeffwan
Copy link
Member

Jeffwan commented Apr 14, 2020

Following command doesn't work.

$ go get github.com/kubeflow/common
go: finding github.com/kubeflow/common latest
go get: github.com/kubeflow/common@v0.0.0-20200413165349-fda69c7bdd38 requires
	k8s.io/kubernetes@v1.18.0 requires
	k8s.io/kubectl@v0.0.0: reading k8s.io/kubectl/go.mod at revision v0.0.0: unknown revision v0.0.0

I think this is because of #62.

I use the stable version here for now and I will fix this when I get time.

$ go get github.com/kubeflow/common@v0.0.0-20200327002023-0b3a4c3fca85
go: finding github.com/kubeflow/common v0.0.0-20200327002023-0b3a4c3fca85
go: downloading github.com/kubeflow/common v0.0.0-20200327002023-0b3a4c3fca85
go: extracting github.com/kubeflow/common v0.0.0-20200327002023-0b3a4c3fca85
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the labels:

Label Probability
bug 0.86

Please mark this comment with 👍 or 👎 to give our bot feedback!
Links: app homepage, dashboard and code for this bot.

@issue-label-bot issue-label-bot bot added the bug label Apr 14, 2020
@jlewi jlewi added kind/bug and removed bug labels Apr 14, 2020
@k82cn
Copy link
Contributor

k82cn commented Apr 15, 2020

@hzxuzhonghu , please also help to check this :)

@hzxuzhonghu
Copy link
Contributor

/assign

@hzxuzhonghu
Copy link
Contributor

@Jeffwan It is not the pr i filed introduced this issue.

go get github.com/kubeflow/common@461336009d7f8e9c97db6de123265accce7e7e36
go: finding github.com 461336009d7f8e9c97db6de123265accce7e7e36
go: finding github.com/kubeflow/common 461336009d7f8e9c97db6de123265accce7e7e36
go: finding github.com/kubeflow 461336009d7f8e9c97db6de123265accce7e7e36
go: downloading github.com/kubeflow/common v0.0.0-20200413165149-461336009d7f
go: extracting github.com/kubeflow/common v0.0.0-20200413165149-461336009d7f
go get: github.com/kubeflow/common@v0.0.0-20200413165149-461336009d7f requires
	k8s.io/kubernetes@v1.15.10 requires
	k8s.io/api@v0.0.0: reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0

@hzxuzhonghu
Copy link
Contributor

with go get github.com/kubeflow/common@v0.0.0-20200327002023-0b3a4c3fca85 i still get the same error

@hzxuzhonghu
Copy link
Contributor

Not sure why, it is weird how i can import latest from tf-operator.

kubeflow/training-operator#1152

@Jeffwan
Copy link
Member Author

Jeffwan commented Apr 15, 2020

@hzxuzhonghu I am not 100% sure this is related to the PR. Technically, once we replace libraries, it should be fine. Let me double check my environment.

I can confirm that if I import this separately, both latest and previous one won't work. This is expected because go.mod in current project ( not kubeflow/common) doesn't have replace.
If I update it inside a project, latest doesn't work for me and previous commit works.

@Jeffwan
Copy link
Member Author

Jeffwan commented Apr 15, 2020

@hzxuzhonghu @k82cn I think I figure it out. Sorry about the confusion. If one project doesn't have all component replaced, it may have this issue. In order to use kubeflow/common, we need to make sure it replace all kubernetes components. In my case, mxnet-operaror miss one kubectl. that's the failure come from. Thanks for the help.

@Jeffwan Jeffwan closed this as completed Apr 15, 2020
@hzxuzhonghu
Copy link
Contributor

For those meeting the similar issue: kubernetes/kubernetes#79384 (comment)

@Jeffwan
Copy link
Member Author

Jeffwan commented Apr 15, 2020

This is interesting. I notice mxnet-operator doesn't have kubectl replace can go get github.com/kubeflow/common@v0.0.0-20200327002023-0b3a4c3fca85 successfully.

I think the problem is more on the Kubernetes side. most of the components including kfctl have been moved to staging in 1.16.x which means kubernetes use v0.0.0 for reference. This means we don't need kfctl override in the project untill we graduate to kubernetes 1.16 and above.

Since we upgrade to 1.18 in PR #62, this requires a change on the operator which uses this lib to have a separate record to override kfctl.

Jeffwan added a commit to Jeffwan/common that referenced this issue Apr 15, 2020
Even we replace all kubernetes dependencies in go.mod, we want to use lowest version to avoid potential dependency issues. See kubeflow#70 for more details.

Signed-off-by: Jiaxin Shan <seedjeffwan@gmail.com>
k8s-ci-robot pushed a commit that referenced this issue Apr 15, 2020
* Update go.mod to use lowest Kubernetes version

Even we replace all kubernetes dependencies in go.mod, we want to use lowest version to avoid potential dependency issues. See #70 for more details.

Signed-off-by: Jiaxin Shan <seedjeffwan@gmail.com>

* Move Pods/Services CRUD to separate control folder

Signed-off-by: Jiaxin Shan <seedjeffwan@gmail.com>
Jeffwan added a commit to Jeffwan/common that referenced this issue Apr 15, 2020
Even we replace all kubernetes dependencies in go.mod, we want to use lowest version to avoid potential dependency issues. See kubeflow#70 for more details.

Signed-off-by: Jiaxin Shan <seedjeffwan@gmail.com>
georgkaleido pushed a commit to georgkaleido/common that referenced this issue Jun 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants