Skip to contentSkip to conversation

fetch/get: Rework tag parameter handling

PATCH Richard Purdie 1 participant 1 message Mar 18, 2025 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 12 lines · Richard Purdie via lists.openembedded.org

Currently bitbake disallows tag parameters along with revision parameters. This isn't great since quite often, we'd like to verify that a given revision does match some tag. At the same time we don't want to or need to access the network to verify this, which normally a tag would require.

Rework the code so that tag and revisions can both be specified together. Verify that any tag specified matches the revision in use at unpack time.

This means we can start requiring people to put tags in git SRC_URIs when revisions are used, making review a little easier that it isn't some random revision.

Quoted 5 lines

---
 lib/bb/fetch2/__init__.py | 13 +++++--------
 lib/bb/fetch2/git.py      | 12 ++++++++++++

 2 files changed, 17 insertions(+), 8 deletions(-)

I fixed the get -> git typo in the subject...

Cheers,

Richard