diff options
author | Joao Marcos Costa <joaomarcos.costa@bootlin.com> | 2024-04-05 12:03:52 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-04-08 14:36:38 +0100 |
commit | d72ace8e5a7389c32bfcde731e0beb7ae225dc74 (patch) | |
tree | 2330f2b2b1b5071c530023bee197d2dbc904b1a6 /documentation/ref-manual/classes.rst | |
parent | d357a08fb1f9e411e715f73f705537d6465a756d (diff) | |
download | poky-d72ace8e5a7389c32bfcde731e0beb7ae225dc74.tar.gz |
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>
Diffstat (limited to 'documentation/ref-manual/classes.rst')
-rw-r--r-- | documentation/ref-manual/classes.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst index ab71cbe40c..a1e160bb44 100644 --- a/documentation/ref-manual/classes.rst +++ b/documentation/ref-manual/classes.rst | |||
@@ -939,6 +939,20 @@ The :ref:`ref-classes-go-mod` class allows to use Go modules, and inherits the | |||
939 | 939 | ||
940 | See the associated :term:`GO_WORKDIR` variable. | 940 | See the associated :term:`GO_WORKDIR` variable. |
941 | 941 | ||
942 | .. _ref-classes-go-vendor: | ||
943 | |||
944 | ``go-vendor`` | ||
945 | ============= | ||
946 | |||
947 | The :ref:`ref-classes-go-vendor` class implements support for offline builds, | ||
948 | also known as Go vendoring. In such a scenario, the module dependencias are | ||
949 | downloaded during the :ref:`ref-tasks-fetch` task rather than when modules are | ||
950 | imported, thus being coherent with Yocto's concept of fetching every source | ||
951 | beforehand. | ||
952 | |||
953 | The dependencies are unpacked into the modules' ``vendor`` directory, where a | ||
954 | manifest file is generated. | ||
955 | |||
942 | .. _ref-classes-gobject-introspection: | 956 | .. _ref-classes-gobject-introspection: |
943 | 957 | ||
944 | ``gobject-introspection`` | 958 | ``gobject-introspection`` |