[libvirt PATCH] docs: Add go-import directive for module-aware packages

Andrea Bolognani abologna at redhat.com
Fri Jul 2 12:21:16 UTC 2021


This is how Go figures out the location of the git repository
containing the actual code for the package.

Addresses the following error message:

  go: libvirt.org/go/libvirt at v1.7005.0:
      unrecognized import path "libvirt.org/go/libvirt":
      parse https://libvirt.org/go/libvirt?go-get=1:
      no go-import meta tags ()

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 docs/page.xsl | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/docs/page.xsl b/docs/page.xsl
index 5cb4322fdc..1786feb51f 100644
--- a/docs/page.xsl
+++ b/docs/page.xsl
@@ -105,6 +105,12 @@
         <xsl:if test="$pagesrc = 'docs/libvirt-go-xml.rst'">
           <meta name="go-import" content="libvirt.org/libvirt-go-xml git https://libvirt.org/git/libvirt-go-xml.git"/>
         </xsl:if>
+        <xsl:if test="$pagesrc = 'docs/go/libvirt.rst'">
+          <meta name="go-import" content="libvirt.org/go/libvirt git https://libvirt.org/git/libvirt-go-module.git"/>
+        </xsl:if>
+        <xsl:if test="$pagesrc = 'docs/go/libvirtxml.rst'">
+          <meta name="go-import" content="libvirt.org/go/libvirtxml git https://libvirt.org/git/libvirt-go-xml-module.git"/>
+        </xsl:if>
         <xsl:apply-templates select="/html:html/html:head/html:script" mode="content"/>
 
         <script type="text/javascript" src="{$href_base}js/main.js">
-- 
2.31.1




More information about the libvir-list mailing list