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

module github.com/googleapis/gnostic@latest found (v0.4.1), but does not contain package github.com/googleapis/gnostic/OpenAPIv2 #156

Closed
gh67uyyghj opened this issue Feb 10, 2020 · 5 comments

Comments

@gh67uyyghj
Copy link

The above error shows up when I try to get the latest k8s go client package.

@babinin
Copy link

babinin commented Feb 11, 2020

Hi @gh67uyyghj
as i see in v0.4.1 openapi is must be imported as
''openapi2 "github.com/googleapis/gnostic/openapiv2""
instead of previous
"openapiv2 "github.com/googleapis/gnostic/OpenAPIv2"".
it's pretty fresh release, so (i think) k8s client-go will be updated soon

@gh67uyyghj
Copy link
Author

Thank you! I apologize it seems I should have opened it in the k8s go-client repo instead of here

@vvitayau
Copy link

still an issue

$ GO111MODULE=on go get -u github.com/go-acme/lego/v3/cmd/lego
go: downloading github.com/googleapis/gnostic v0.4.2
go: downloading k8s.io/utils v0.0.0-20200619165400-6e3d28b6ed19
go: finding module for package github.com/googleapis/gnostic/OpenAPIv2
go: finding module for package github.com/googleapis/gnostic/OpenAPIv2
go/pkg/mod/k8s.io/client-go@v11.0.0+incompatible/discovery/discovery_client.go:29:2: module github.com/googleapis/gnostic@latest found (v0.4.2), but does not contain package github.com/googleapis/gnostic/OpenAPIv2

@gabrielperezs
Copy link

I'm with the same issue, but maybe this helps to you: kubernetes/test-infra#16116

go get github.com/googleapis/gnostic@v0.4.0

@lboix
Copy link

lboix commented Mar 25, 2021

Here is a workaround that could help, especially if you are using Kubernetes 1.14 : kubernetes/client-go#741 (comment)

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

5 participants