Hi Bruce,
The new go-mod-vcs recently introduced in meta-virt has some some problems.
The first and most significant one is the misuse of BB_GIT_SHALLOW_EXTRA_REFS.
It causes fetching failure when shallow tarball generation is enabled.
Use the following steps to reproduce the error:
1. Add in local.conf:
BB_GENERATE_SHALLOW_TARBALLS = "1"
BB_GIT_SHALLOW = "1"
1. bitbake cni -c fetch
Error message: fatal: couldn't find remote ref v0.0.4
Root cause: the repos specified in SRC_URI does not contain the required extra
refs specified by BB_GIT_SHALLOW_EXTRA_REFS.
The second one is the duplicate entries in SRC_URI. Example: errdefs in
docker-compose.
The third one is the 'shallow=1' parameter in SRC_URI. The problem is that git
fetcher does not support such parameter.
In fetch2/git.py: ud.shallow = d.getVar("BB_GIT_SHALLOW") == "1"
So I guess these could be removed? And switching to use BB_GIT_SHALLOW:pn-xxx =
"1"?
P.S.
I sent a related patch to bitbake:
https://lists.openembedded.org/g/bitbake-devel/message/18656
The problem in bitbake is revealed by the current SRC_URI settings in meta-virt.
If you get similar error, you can apply the above patch.
Regards,
Qi
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9510):
https://lists.yoctoproject.org/g/meta-virtualization/message/9510
Mute This Topic: https://lists.yoctoproject.org/mt/116993898/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-