Skip to contentSkip to conversation

#bitbake Can't get application sources from private git using SSH keys #bitbake #yocto

DISCUSSION [email protected] 2 participants 3 messages Jul 29, 2021

lore
Share & tools
lore
#0 lore raw

Hi,
Working on Yocto build system first time.
I has written a recipe to fetch the code from private GIT HUB, using SSH keys. Able to clone the code using git clone. However when i ran bitbake getting below error.
"ssh couldnot resolve host"

In my bitbake recipe these two line are present SRCREV = "ed189c8f5a4df7xxxxxxxxxxx4d443c382f4578" SRC_URI = "git://[email protected]:xxx/xxx.git"

Could someone please suggest on how to write a recipe to get the application code from private git hub using SSH keys.

Regards,
Vijay

#1 lore raw

Hello,

Quoted 4 lines · Le jeu. 29 juil. 2021 à 08:22, <[email protected]> a écrit :

SRC_URI = "git://[email protected]:xxx/xxx.git"
Could someone please suggest on how to write a recipe to get the application code from private git hub using SSH keys.

The ':' in SRC_URI is not handled like in the git clone command line. You may need to change it to a '/'
SRC_URI = "git://[email protected]/xxx/xxx.git;protocol=ssh;"

This is a frequent error (I make it at least once per project)

Hope this helps!

Regards,

Signature · 2 lines
Yoann Congal
Smile ECS - Expert technique