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.
+
+4. Install the libnbd development package
+
+ dnf install libnbd-devel
+
+ The package may be named differently on your distro.
+
+## License
+
+The software is copyright © Red Hat Inc. and licensed under the GNU
+Lesser General Public License version 2 or above (LGPLv2+). See
+the file `LICENSE` for details.
--
2.31.1