classes: document new go-vendor class

A reference to this class in the release notes will be added in a
follow-up commit.

(From yocto-docs rev: bfd38ad1056ded01a25acfa37e89302df2290ddf)

Signed-off-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Joao Marcos Costa
2024-04-05 12:03:52 +02:00
committed by Richard Purdie
parent d357a08fb1
commit d72ace8e5a

View File

@@ -939,6 +939,20 @@ The :ref:`ref-classes-go-mod` class allows to use Go modules, and inherits the
See the associated :term:`GO_WORKDIR` variable.
.. _ref-classes-go-vendor:
``go-vendor``
=============
The :ref:`ref-classes-go-vendor` class implements support for offline builds,
also known as Go vendoring. In such a scenario, the module dependencias are
downloaded during the :ref:`ref-tasks-fetch` task rather than when modules are
imported, thus being coherent with Yocto's concept of fetching every source
beforehand.
The dependencies are unpacked into the modules' ``vendor`` directory, where a
manifest file is generated.
.. _ref-classes-gobject-introspection:
``gobject-introspection``