diff --git a/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml b/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml index ad9fa0abd4..69707a06cf 100644 --- a/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml +++ b/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml @@ -5554,4 +5554,34 @@ GROUPS= pulse pulse-access pulse-rt takes care of most items that these ports need to take into account. + + + Go Libraries + + Ports must not package or install Go libs or source code. Only + lang/go* should install into + GO_SRCDIR and GO_LIBDIR. Go + ports must fetch the required deps at the normal fetch time and + should only install the programs and things users need, not the + things Go developers would need. + + Ports should (in order of preference): + + + Use vendored dependencies included with the package + source. + + + + Fetch the versions of deps specified by upstream (in the + case of vendor.json or similar). + + + + As a last resort (deps are not included nor versions + specified exactly) fetch versions of dependencies available + at the time of upstream development/release. + + + diff --git a/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml b/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml index bbf7c9a68a..3ff6c52b9d 100644 --- a/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml +++ b/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml @@ -1048,6 +1048,11 @@ USE_GNOME= gnomemenus3:build intlhack <literal>go</literal> + + Ports should not be created for Go libs, see + for more information. + + Possible arguments: (none) Sets default values and targets used to build