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


mail2uvijay@...
 

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://git@...: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


Yoann Congal
 

Hello,

Le jeu. 29 juil. 2021 à 08:22, <mail2uvijay@...> a écrit :
SRC_URI = "git://git@...: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 '/'

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

Hope this helps!

Regards,
--
Yoann Congal
Smile ECS - Expert technique


mail2uvijay@...
 

Thank you Yoann. I was able to fetch.