mirror of
https://git.yoctoproject.org/poky
synced 2026-09-24 22:36:21 +02:00
bitbake: doc: Document challenges of tags with git fetcher
Using tags with the git fetcher may cause surprising behaviour. There are reasons for this, document them. (Bitbake rev: 56224da378ab63526d44fd7a70bcfd2cffe245cc) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -476,6 +476,14 @@ Here are some example URLs::
|
|||||||
easy to share metadata without removing passwords. SSH keys, ``~/.netrc``
|
easy to share metadata without removing passwords. SSH keys, ``~/.netrc``
|
||||||
and ``~/.ssh/config`` files can be used as alternatives.
|
and ``~/.ssh/config`` files can be used as alternatives.
|
||||||
|
|
||||||
|
Using tags with the git fetcher may cause surprising behaviour. Bitbake needs to
|
||||||
|
resolve the tag to a specific revision and to do that, it has to connect to and use
|
||||||
|
the upstream repository. This is because the revision the tags point at can change and
|
||||||
|
we've seen cases of this happening in well known public repositories. This can mean
|
||||||
|
many more network connections than expected and recipes may be reparsed at every build.
|
||||||
|
Source mirrors will also be bypassed as the upstream repository is the only source
|
||||||
|
of truth to resolve the revision accurately. For these reasons, whilst the fetcher
|
||||||
|
can support tags, we recommend being specific about revisions in recipes.
|
||||||
|
|
||||||
.. _gitsm-fetcher:
|
.. _gitsm-fetcher:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user