Re: [yocto] gitpkgv class not returning hash if sources are not already fetched

2024-07-16 Thread lorenzo.arena via lists.yoctoproject.org
Hi Marco, you're right, however if I can recall it correctly SRCPV used to be set to the right hash even before fetching; in fact, there's a loop in the gitpkgv bbclass which contains "for name, rev in url.revisions.items():" and already has a valid rev, except that then it also checks for the

Re: [yocto] gitpkgv class not returning hash if sources are not already fetched

2024-07-16 Thread Marco Cavallini
Hi Lorenzo, how would you expect to be able to have access to the hash of the project if you haven't downloaded the repo itself previously? Ciao -- Marco Cavallini | KOAN sas Bergamo - Italia embedded software engineering https://KoanSoftware.com -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all me

[yocto] gitpkgv class not returning hash if sources are not already fetched

2024-07-15 Thread lorenzo.arena via lists.yoctoproject.org
Hi, I have a couple of projects which I'm migrating from kirkstone to scarthgap; previously some of my recipes (with sources fetched from a git remote) used the SRCPV to dump the current hash of the project to a file which gets then installed in the root fs. This worked both when SRCREV was set