Re: git fetcher: does not execute git fetch --tags or similar when HEAD has not changed


Denys Dmytriyenko
 

Why not use SRCREV?
Also, bitbake has its own mailing list.

Denys

On Thu, Mar 12, 2020 at 02:55:59PM +0100, Matthias Schoepfer via Lists.Yoctoproject.Org wrote:
Hi!

We have noticed the following issue: We keep the versions of out
software by means of tags on the git repositories, i.e. during the
build, somethings like git describe --tags gets called. In yocto,
our recipe of SomeLibrary might look then similar to this:

SRC_URI = "git://our.private.gitserver.org/git/SomeLibrary.git;tags=v${PV}"

When we build the image, and *then* apply a tag to HEAD, that was
already built before, it seems like the tags are not fetched (my
guess is git fetcher sees that origins HEAD and local HEAD have the
same hash and is fine with it).

The error is, that while the correct version is built, it will
report itself with a wrong version.

Is this a bug?

Regards,

Matthias

--
Dr.-Ing. Matthias Schöpfer
matthias.schoepfer@...

Join yocto@lists.yoctoproject.org to automatically receive all group messages.