On Sun, Oct 31, 2021 at 07:20:43PM +0200, Nir Soffer wrote:
On Sun, Oct 31, 2021 at 7:11 PM Nir Soffer <nsoffer(a)redhat.com>
wrote:
>
> On Sun, Oct 31, 2021 at 7:00 PM Nir Soffer <nsoffer(a)redhat.com> wrote:
> ...
> > +2. Extract the go binding directory
> > +
> > + tar xvf libnbd-1.10.1.tar.gz \
> > + --directory pkg \
> > + --strip 3 \
> > + --exclude "*_test.go" \
> > + --exclude ".gitignore" \
> > +
libnbd-1.10.1/golang/src/libguestfs.org/libnbd
> > +
> > +3. Edit your go mode file to use the local copy
> > +
> > + go mod edit -replace
libguestfs.org/libnbd=./pkg/libguestfs.org/libnbd
>
> I tested this and it works, but now I noticed that the README.md and LICENSE
> were not packaged in the tarball.
After adding them to golang/Makefile.am EXTRA_DIST, they are packed.
Correct.
Here's a trick:
make && make dist && make maintainer-check-extra-dist
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