Giter Club home page Giter Club logo

Comments (5)

BoolOrInt avatar BoolOrInt commented on July 21, 2024 5

any news regarding this issue?

from client-go.

RamLavi avatar RamLavi commented on July 21, 2024

I suggest you try using the replace functionality, similar to how they use it in this repo's go.mod file, ( i used the one for v0.39.1 since your log indicates that's what you're using) then retry the go mod tidy && go mod vendor

from client-go.

kubevirt-bot avatar kubevirt-bot commented on July 21, 2024

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.

/lifecycle stale

from client-go.

PendaGTP avatar PendaGTP commented on July 21, 2024

Hi @sunyuan300,

Did you manage to use the kubevirt client?
I can't install the client, could you publish an example of your go.mod file?

Below are the tests I did:

File go.mod:

module xxxxxxxx

go 1.16

require (
	github.com/onsi/ginkgo v1.16.4
	github.com/onsi/gomega v1.13.0
	k8s.io/apimachinery v0.21.2
	k8s.io/client-go v0.21.2
	sigs.k8s.io/controller-runtime v0.9.2
)
go get kubevirt.io/[email protected]
go get: kubevirt.io/[email protected] updating to
        kubevirt.io/[email protected] requires
        github.com/openshift/[email protected]: reading github.com/openshift/client-go/go.mod at revision v0.0.0: unknown revision v0.0.0

Adding client-go in replace :
go.mod

module xxxxxxxx

go 1.16

require (
	github.com/onsi/ginkgo v1.16.4
	github.com/onsi/gomega v1.13.0
	k8s.io/apimachinery v0.21.2
	k8s.io/client-go v0.21.2
	sigs.k8s.io/controller-runtime v0.9.2
)
replace 
(
  github.com/openshift/client-go => github.com/openshift/client-go v0.0.0-20210112165513-ebc401615f47
)

The error message is then as follows:

go mod tidy
go: finding module for package kubevirt.io/client-go/kubecli
go: found kubevirt.io/client-go/kubecli in kubevirt.io/client-go v0.45.0
go: kubevirt.io/[email protected] requires
        kubevirt.io/[email protected] requires
        github.com/openshift/[email protected]: reading github.com/openshift/api/go.mod at revision v0.0.0: unknown revision v0.0.0

Add openshift/api in replace:

replace 
(
  github.com/openshift/api => github.com/openshift/api v0.0.0-20210105115604-44119421ec6b
  github.com/openshift/client-go => github.com/openshift/client-go v0.0.0-20210112165513-ebc401615f47
)

Still a mistake:

go: finding module for package kubevirt.io/client-go/kubecli
go: found kubevirt.io/client-go/kubecli in kubevirt.io/client-go v0.45.0
go: kubevirt.io/[email protected] requires
        kubevirt.io/[email protected] requires
        k8s.io/[email protected]: reading k8s.io/cluster-bootstrap/go.mod at revision v0.0.0: unknown revision v0.0.0

And so on, I do not find a solution.

from client-go.

ZhangSetSail avatar ZhangSetSail commented on July 21, 2024

any news regarding this issue?

from client-go.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.