Hi, i cannot import libguestfs golang lib, go get package libguestfs.org/guestfs: unrecognized import path " libguestfs.org/guestfs" (https fetch: Get https://libguestfs.org/guestfs?go-get=1: dial tcp [2001:41c9:1:422::215]:443: getsockopt: connection refused) Any ideas? has the url changed or something? @rwmjones -- Regards, Shashwat Shagun
Richard W.M. Jones
2018-Jun-07 07:59 UTC
Re: [Libguestfs] issue regarding libguestfs-golang
On Thu, Jun 07, 2018 at 09:00:30AM +0530, Shashwat shagun wrote:> Hi, > i cannot import libguestfs golang lib, > > go get package libguestfs.org/guestfs: unrecognized import path " > libguestfs.org/guestfs" (https fetch: Get > https://libguestfs.org/guestfs?go-get=1: dial tcp > [2001:41c9:1:422::215]:443: getsockopt: connection refused)We discussed this on IRC, so for the permanent record ... The sources are generated, so they don't appear in the git repo unless you build everything from source. However the generated files are included in the tarballs (http://libguestfs.org/download) under golang/src/libguestfs.org/guestfs/ This is not well tested. In fact you may be the first user that we know about for some time. So expect there may be problems and it may need fixing (although it certainly *did* work in the past). Best of luck, Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v
Richard W.M. Jones
2018-Jun-07 11:43 UTC
Re: [Libguestfs] issue regarding libguestfs-golang
On Thu, Jun 07, 2018 at 05:11:44PM +0530, Shashwat shagun wrote:> for anyone who wants build something similar. i made a repo. > https://github.com/Shashwatsh/libguestfs-golang. P.S guestfs.go is not in > https://github.com/libguestfs/libguestfs/tree/master/golang/src/libguestfs.org/guestfsIt is generated from the API description, see: https://github.com/libguestfs/libguestfs/blob/master/generator/golang.ml Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
oh i stand corrected! On Thu, Jun 7, 2018 at 5:13 PM, Richard W.M. Jones <rjones@redhat.com> wrote:> On Thu, Jun 07, 2018 at 05:11:44PM +0530, Shashwat shagun wrote: > > for anyone who wants build something similar. i made a repo. > > https://github.com/Shashwatsh/libguestfs-golang. P.S guestfs.go is not > in > > https://github.com/libguestfs/libguestfs/tree/master/golang/ > src/libguestfs.org/guestfs > > It is generated from the API description, see: > > https://github.com/libguestfs/libguestfs/blob/master/generator/golang.ml > > Rich. > > -- > Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~ > rjones > Read my programming and virtualization blog: http://rwmj.wordpress.com > libguestfs lets you edit virtual machines. Supports shell scripting, > bindings from many languages. http://libguestfs.org >-- Regards, Shashwat Shagun