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

dependency on k8s.io/kubernetes cause build failure #169

Open
ymotongpoo opened this issue Jan 7, 2021 · 2 comments
Open

dependency on k8s.io/kubernetes cause build failure #169

ymotongpoo opened this issue Jan 7, 2021 · 2 comments

Comments

@ymotongpoo
Copy link
Member

My application is depending upon github.com/GoogleCloudPlatform/container-engine-accelerators/pkg/gpu/nvidia/metrics, and k8s.io/kubernetes is in its indirect dependencies. Because of it, go build command fails with the following messages.

go build
go: finding module for package github.com/GoogleCloudPlatform/container-engine-accelerators/pkg/gpu/nvidia/metrics
go: found github.com/GoogleCloudPlatform/container-engine-accelerators/pkg/gpu/nvidia/metrics in github.com/GoogleCloudPlatform/container-engine-accelerators v0.0.0-20201215190136-13a0dea71c2e
go: github.com/GoogleCloudPlatform/container-engine-accelerators@v0.0.0-20201215190136-13a0dea71c2e requires
	k8s.io/kubernetes@v1.19.3 requires
	k8s.io/api@v0.0.0: reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0

The issue is already reported here (kubernetes/kubernetes#90358) but hopefully someone can conduct the workaround introduced in the issue thread.

@ruiwen-zhao
Copy link
Contributor

Hi it seems that there is already a workaround suggested in the issue you linked (kubernetes/kubernetes#90358 (comment)), have you tried it?

@ymotongpoo
Copy link
Member Author

I know that work around and what I'm asking is someone in this repo to do it, because k8s.io/kubernetes is not supposed to be depended by external packages but for ones under k8s.io.

Quoting from the thread (kubernetes/kubernetes#90358 (comment)):

This is caused by depending on k8s.io/kubernetes directly as a library, which is not supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants