Skip to content

import error : k8s.io/api@v0.0.0: reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0 #49

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

Open
arivatibm opened this issue Sep 1, 2020 · 1 comment

Comments

@arivatibm
Copy link

arivatibm commented Sep 1, 2020

when importing either one of these:

  • appv1alpha1 "github.com/open-cluster-management/multicloud-operators-deployable/pkg/apis/apps/v1"
  • appv1alpha1 "github.com/open-cluster-management/multicloud-operators-deployable"

I get this error during compilation of Go app:

go: finding module for package github.com/open-cluster-management/multicloud-operators-deployable
go: finding module for package github.com/open-cluster-management/multicloud-operators-deployable/
go: found github.com/open-cluster-management/multicloud-operators-deployable in github.com/open-cluster-management/multicloud-operators-deployable v1.0.0
go: github.com/open-cluster-management/multicloud-operators-deployable@v1.0.0 requires
	k8s.io/api@v0.0.0: reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0
@arivatibm
Copy link
Author

the issue seems to be related to this line in go.mod:
k8s.io/kubernetes v1.13.0/go.mod h1:ocZa8+6APFNC2tX1DZASIbocyYT5jHzqFVsY5aoB7Jk=

according to multiple similar errors running around - you should not be importing k8s.io/kubernetes directly

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

1 participant