doc: Document challenges of tags with git fetcher
PATCH 1/1 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.
--- doc/bitbake-user-manual/bitbake-user-manual-fetching.rst | 7 +++++++ 1 file changed, 7 insertions(+)
doc/bitbake-user-manual/bitbake-user-manual-fetching.rst +7 -0
@@ -476,6 +476,13 @@ Here are some example URLs:: easy to share metadata without removing passwords. SSH keys, ``~/.netrc`` 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 tags point at can change and +we've cases of this happening in well known public repositories. This can mean many +more network connections than expected, source mirrors may be bypassed and recipes +may reparsed when not expected. For these reasons, whilst the fetcher can support +tags, we recommend being specific about revisions in recipes. .. _gitsm-fetcher:
Signature · 1 line
2.39.2
Quoted 44 lines · On Sat, Sep 2, 2023 at 12:55, Richard Purdie…
Using tags with the git fetcher may cause surprising behaviour. There are reasons for this, document them.
Signed-off-by Richard Purdie <[email protected]>---
doc/bitbake-user-manual/bitbake-user-manual-fetching.rst| 7 +++++++1 file changed, 7 insertions(+)doc/bitbake-user-manual/bitbake-user-manual-fetching.rst +0
-0@@ -476,6 +476,13 @@ Here are some example URLs::easy to share metadata without removing passwords. SSH keys, ``~/.netrc`` and ``~/.ssh/config`` files can be used as alternatives.
doc/bitbake-user-manual/bitbake-user-manual-fetching.rst +6
-0+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 tags point at can change and +we've cases of this happening in well known public repositories. This can mean many +more network connections than expected, source mirrors may be bypassed and recipes +mayQuoted 3 lines
and
+we've cases of this happening in well known public repositoriesreparsed when not expected. For these reasons, whilst the fetcher can support +tags, we recommend being specific about revisions in recipes.
.. _gitsm-fetcher:
--
2.39.2-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#15004): https://lists.openembedded.org/g/bitbake-devel/message/15004
Mute This Topic: https://lists.openembedded.org/mt/101111607/4454782
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/leave/12051247/4454782/107362028/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 2 lines
and
+we've cases of this happening in well known public repositories
Historically this happened with well known public repositories.
Why can source mirrors be bypassed? Because the hash changed and the mirror does not have it? If so it would be nice to clarify it.
Hi Richard,
Quoted 13 lines · Richard Purdie via lists.openembedded.org
Using tags with the git fetcher may cause surprising behaviour. There are reasons for this, document them.
Signed-off-by Richard Purdie <[email protected]>--- doc/bitbake-user-manual/bitbake-user-manual-fetching.rst | 7 +++++++ 1 file changed, 7 insertions(+)doc/bitbake-user-manual/bitbake-user-manual-fetching.rst +0
-0
doc/bitbake-user-manual/bitbake-user-manual-fetching.rst Here are some example URLs:: · line 482
Quoted 7 lines
doc/bitbake-user-manual/bitbake-user-manual-fetching.rst +4
-0@@ -476,6 +476,13 @@ Here are some example URLs:: easy to share metadata without removing passwords. SSH keys, ``~/.netrc`` 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 tags point at can change and +we've cases of this happening in well known public repositories. This can mean many
Intuitively, I think "seen" or "had" is missing in "we've cases".
Otherwise, same question as Paulo, so will look for follow-up on that other mail :)
Cheers,
Quentin