pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/doc/guide/files



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Tue Jul  6 16:57:09 UTC 2021

Modified Files:
        pkgsrc/doc/guide/files: fixes.xml

Log Message:
Add steps for Go packages using Go modules, from leot@ in private mail.


To generate a diff of this commit:
cvs rdiff -u -r1.161 -r1.162 pkgsrc/doc/guide/files/fixes.xml

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/doc/guide/files/fixes.xml
diff -u pkgsrc/doc/guide/files/fixes.xml:1.161 pkgsrc/doc/guide/files/fixes.xml:1.162
--- pkgsrc/doc/guide/files/fixes.xml:1.161      Fri Jun 11 15:09:51 2021
+++ pkgsrc/doc/guide/files/fixes.xml    Tue Jul  6 16:57:09 2021
@@ -1,4 +1,4 @@
-<!-- $NetBSD: fixes.xml,v 1.161 2021/06/11 15:09:51 nia Exp $ -->
+<!-- $NetBSD: fixes.xml,v 1.162 2021/07/06 16:57:09 schmonz Exp $ -->
 
 <chapter id="fixes"> <?dbhtml filename="fixes.html"?>
 <title>Making your package work</title>
@@ -1413,6 +1413,29 @@ pre-configure:
     </itemizedlist>
   </sect2>
 
+  <sect2 id="go-programming-language">
+    <title>Go</title>
+
+    <para>If a program is written in Go and has any dependencies on
+    other Go modules, have the package include
+    <filename>../../lang/go/go-module.mk</filename>.</para>
+
+
+    <orderedlist>
+      <listitem><para>Generate a list of those dependencies with
+      <command>make clean && make patch && make show-go-modules >
+      go-modules.mk</command>.</para></listitem>
+
+      <listitem><para>Prepend <programlisting>.include
+      "go-modules.mk"</programlisting> to any other
+      <programlisting>.include</programlisting>s.</para></listitem>
+
+      <listitem><para>Incorporate these modules in
+      <filename>distinfo</filename> with <command>make
+      makesum</command>.</para></listitem>
+    </orderedlist>
+  </sect2>
+
   <sect2 id="perl-scripts">
     <title>Packages containing Perl scripts</title>
 



Home | Main Index | Thread Index | Old Index