Re: Only index.html is cloned in private repo clone recipe #yocto


Ross Burton
 

On Wed, 7 Oct 2020 at 09:43, Bel Hadj Salem Talel <bhstalel@gmail.com> wrote:
Thanks for the quick reply ,
Actually I was wrong about https, I changed it to http and added: SRCURL = "git://gitlab.tools.comp.local/comp/sense/sense_frontend"
instead of SRCURL = "http://gitlab.tools.comp.local/comp/sense/sense_frontend"

Now when I do_fetch:

############
ERROR: sense-web-1.0-r0 do_fetch:
Fetcher failure for URL: 'git://gitlab.tools.comp.local/comp/sense/sense_frontend;protocol=http;branch=master'.
Please set a valid SRCREV for url ['SRCREV_default_pn-sense-web', 'SRCREV_default', 'SRCREV_pn-sense-web', 'SRCREV']
(possible key names are git://gitlab.tools.comp.local/comp/sense/sense_frontend;protocol=http;branch=master, or use a ;rev=X URL parameter)
############

I'm trying to understand the issue for my Yocto knowledge.
Can you help me understand this or fix the issue ?
The git fetcher needs to know what SHA to unpack. You haven't set
SRCREV, you can either set it to the specific SHA or to "${AUTOREV}"
if you want it to refetch every time it builds.

Note that the [md5sum] and [sha256sum] flags are only needed for HTTP
downloads, so you can delete these lines.

Ross

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