[bitbake-devel] Sumo to Thud migration: Fetch failure from gitsm.py

da Silva Filho, Josias Inacio jdasilva at ciena.com
Thu Nov 22 15:31:23 UTC 2018


Hi folks,

I'm working on migrating my environment from Sumo to Thud. After fixing a few quirks, it seems the fetch is failing for my foo.bb which uses gitsm.

.gitmodules content in foo repo:
[submodule "common-lib"]
                path = common-lib
                url = ssh://git@<url_to_common-lib>/common-lib.git

foo.bb:
SRC_URI="gitsm://git@b<url_to_foo>.git;protocol=ssh;branch=master"
SRCREV="f55fae9dc9b476f8ed193f15e2d5cd6747777451"

Digging inside gitsm.py it looks like module_hash is not being set correctly (empty) and that causes the issue:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/bitbake/lib/bb/fetch2/gitsm.py#n87

I added the following right after line 87, so I could dump the variables content. This is how I confirmed module_hash is empty:
raise bb.fetch2.FetchError('module: %s, submodules: %s, module_hash: %s, basecmd: %s, revisions: %s, paths: %s, clonedir: %s ' % ( module, submodules, module_hash, ud.basecmd, ud.revisions[name], paths[module], ud.clonedir))

And the output:
ERROR: Fetcher failure: module: common-lib, submodules: ['common-lib'], module_hash: , basecmd: git -c core.fsyncobjectfiles=0, revisions: f55fae9dc9b476f8ed193f15e2d5cd6747777451, paths: common-lib, clonedir: /localdata/yocto/downloads/git2/<foo's path>.git

Any ideas why module_hash is not being set correctly?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20181122/200e1cdc/attachment.html>


More information about the bitbake-devel mailing list