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

package github.com/googleapis/gnostic/OpenAPIv2: cannot find package #16116

Closed
ZhiyuanChen opened this issue Feb 4, 2020 · 9 comments
Closed
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@ZhiyuanChen
Copy link

What happened:

package github.com/googleapis/gnostic/OpenAPIv2: cannot find package "github.com/googleapis/gnostic/OpenAPIv2" in any of:
/usr/local/go/src/github.com/googleapis/gnostic/OpenAPIv2 (from $GOROOT)
/home/zc/go/src/github.com/googleapis/gnostic/OpenAPIv2 (from $GOPATH)

What you expected to happen:

install

How to reproduce it (as minimally and precisely as possible):

go get -u k8s.io/test-infra/prow/cmd/tackle && tackle

Please provide links to example occurrences, if any:

Anything else we need to know?:

@ZhiyuanChen ZhiyuanChen added the kind/bug Categorizes issue or PR as related to a bug. label Feb 4, 2020
@poothia
Copy link

poothia commented Feb 7, 2020

it's breaking due to the change made in google/gnostic#155 . until this is fixed in client pin your go client to "k8s.io/client-go v0.17.0" in your go-mod.

@StarCoral
Copy link

I have same problem ,
and I tried the way from @boyan-soubachov googleapis/gnostic#155
use the command go get github.com/googleapis/[email protected] , and it can be solved.

Thank you!~

it's breaking due to the change made in googleapis/gnostic#155 . until this is fixed in client pin your go client to "k8s.io/client-go v0.17.0" in your go-mod.

@boyan-soubachov
Copy link

boyan-soubachov commented Feb 12, 2020 via email

@divoxx
Copy link

divoxx commented Feb 19, 2020

We are also having this issue when building k8s.io/apimachinery/ pinned to the kubernetes-1.14.9 tag, since that's the kubernetes version we are working with (AWS EKS).

Since this is a breaking change with very wide surface, is it safe to assume the fix will be back ported to those kubernetes-* branches?

uzxmx added a commit to uzxmx/brigade-k8s-gateway that referenced this issue Feb 28, 2020
@fejta-bot
Copy link

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

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 19, 2020
@ZhiyuanChen
Copy link
Author

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 20, 2020
corneliusweig added a commit to corneliusweig/rakkess that referenced this issue Aug 15, 2020
@nyetwurk
Copy link

.go/pkg/mod/k8s.io/[email protected]/discovery/discovery_client.go:29:2: module github.com/googleapis/gnostic@latest found (v0.5.1), but does not contain package github.com/googleapis/gnostic/OpenAPIv2

        k8s.io/api v0.18.8
        k8s.io/apimachinery v0.18.8
        k8s.io/client-go v0.17.11
        k8s.io/utils v0.0.0-20200821003339-5e75c0163111 // indirect
	github.com/googleapis/gnostic v0.5.1 // indirect

Also doesn't work with v0.4

@BenTheElder
Copy link
Member

Hi, this is the wrong repo to discuss how Kubernetes handles dependencies.

1.14 is not supported by open source and hasn't been. In fact 1.16 just wrapped up.

This repo is not go getabble unfortunately. You need to clone the repo and build locally so the replace statements are respected.

@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
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

10 participants