diff options
author | schmonz <schmonz@pkgsrc.org> | 2021-07-06 16:57:09 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2021-07-06 16:57:09 +0000 |
commit | c0be4eb0cd93c82d6eca649c7a2487116bb0992e (patch) | |
tree | 99981632e23f842ee53415ce626d85077577fab8 /doc/guide | |
parent | 2b6f841e7bb308ab09e30f7f4f6b21cefe551ff5 (diff) | |
download | pkgsrc-c0be4eb0cd93c82d6eca649c7a2487116bb0992e.tar.gz |
Add steps for Go packages using Go modules, from leot@ in private mail.
Diffstat (limited to 'doc/guide')
-rw-r--r-- | doc/guide/files/fixes.xml | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/doc/guide/files/fixes.xml b/doc/guide/files/fixes.xml index 3c44029e47d..14ce76ecdf2 100644 --- a/doc/guide/files/fixes.xml +++ b/doc/guide/files/fixes.xml @@ -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> |