-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Lowercase openapiv2 imports #741
Comments
Getting a specific version will make use of correct transitive versions. For example, See the INSTALL.md in the repo root for details |
failed again and correct solution is to use a special version of github.com/googleapis/gnostic,such as v0.3.1 |
This does not work.
|
try to see what else in your build is requiring a newer version of
|
Had to do both at the same time
since another module depends on gnostic. When will upstream be fixed? |
Same issue here. This is breaking my whole testing suite. |
Please update at least one of the semver client-go versions i can reference (not master), TIA :) |
Existing client-go versions will not be updated. Updating this dependency is being looked at in kubernetes/kubernetes#89704 and kubernetes/kube-openapi#189, targeting Kubernetes 1.19. |
This fixes a build issue. See kubernetes/client-go#741 (comment).
This fixes a build issue. See kubernetes/client-go#741 (comment).
This fixes a build issue. See kubernetes/client-go#741 (comment).
kubernetes/client-go#741 Can upgrade to 0.4.2 once kubernetes 1.19 is released.
* downgraded gnostic to 0.4.0 due to this issue: kubernetes/client-go#741 Can upgrade to 0.4.2 once kubernetes 1.19 is released. * adding auth plugin to clients.go inspired by kubernetes/client-go#242 appears to resolve #46 probably also fixes #54 Co-authored-by: Alex Somesan <alex.somesan@gmail.com>
Thank you so much |
Same issue here but only happens on ubuntu. On windows |
...per kubernetes/client-go#741 (comment) to get around build errors
For those of you developing on macOS (or any other case-insensitive filesystem), I had to do the following in order for git to properly detect the filename change:
|
I have to use replace to get a compatible version and it works. |
Using Kubernetes 1.14, here is the workaround my team and I found to fix this. In your go.mod file, use:
Then run:
And version / commit your /vendor folder (build was unable to pass on our Gitlab runner without this). We are planning to migrate to Kubernetes 1.19 soon. We will be able after that to use the up-to-date Go client version and remove the /vendor folder, I will let you know. Hope it helps, have a great day! |
Good job! |
This solution did not work for me (versions updated to reflect mine)
I also tried this suggestion and failed (again, versions are updated to reflect my system)
I think I am missing something. I have basic Go skills, and this error has taken days of my time. Please help! |
Building the custom task on my mac was working just fine but once we started to build it with CI it failed with `no required module provides package github.com/googleapis/gnostic/OpenAPIv2` Turns out this is a known issue: kubernetes/client-go#741 Kinda at a loss as to why other custom tasks aren't running into this and my understanding of go mod is so shallow that I feel like I'm writing with a crayon to fix this (nothing against crayons, they make cool marks) - but anyway I tried to copy what the pipeline go.mod had done since I think that's where the original version came from anyway https://github.com/tektoncd/pipeline/blob/main/go.mod
Building the custom task on my mac was working just fine but once we started to build it with CI it failed with `no required module provides package github.com/googleapis/gnostic/OpenAPIv2` Turns out this is a known issue: kubernetes/client-go#741 Kinda at a loss as to why other custom tasks aren't running into this and my understanding of go mod is so shallow that I feel like I'm writing with a crayon to fix this (nothing against crayons, they make cool marks) - but anyway I tried to copy what the pipeline go.mod had done since I think that's where the original version came from anyway https://github.com/tektoncd/pipeline/blob/main/go.mod
Building the custom task on my mac was working just fine but once we started to build it with CI it failed with `no required module provides package github.com/googleapis/gnostic/OpenAPIv2` Turns out this is a known issue: kubernetes/client-go#741 Kinda at a loss as to why other custom tasks aren't running into this and my understanding of go mod is so shallow that I feel like I'm writing with a crayon to fix this (nothing against crayons, they make cool marks) - but anyway I tried to copy what the pipeline go.mod had done since I think that's where the original version came from anyway https://github.com/tektoncd/pipeline/blob/main/go.mod
Building the custom task on my mac was working just fine but once we started to build it with CI it failed with `no required module provides package github.com/googleapis/gnostic/OpenAPIv2` Turns out this is a known issue: kubernetes/client-go#741 Kinda at a loss as to why other custom tasks aren't running into this and my understanding of go mod is so shallow that I feel like I'm writing with a crayon to fix this (nothing against crayons, they make cool marks) - but anyway I tried to copy what the pipeline go.mod had done since I think that's where the original version came from anyway https://github.com/tektoncd/pipeline/blob/main/go.mod
Building the custom task on my mac was working just fine but once we started to build it with CI it failed with `no required module provides package github.com/googleapis/gnostic/OpenAPIv2` Turns out this is a known issue: kubernetes/client-go#741 Kinda at a loss as to why other custom tasks aren't running into this and my understanding of go mod is so shallow that I feel like I'm writing with a crayon to fix this (nothing against crayons, they make cool marks) - but anyway I tried to copy what the pipeline go.mod had done since I think that's where the original version came from anyway https://github.com/tektoncd/pipeline/blob/main/go.mod
Build breaking changes due to google/gnostic#155
Need to update imports to github.com/googleapis/gnostic/openapiv2
Here is the error:
go get k8s.io/client-go/kubernetes
---> Running in 2aec6896da7e
package github.com/googleapis/gnostic/OpenAPIv2: cannot find package "github.com/googleapis/gnostic/OpenAPIv2"
The text was updated successfully, but these errors were encountered: