On Mon, May 03, 2021 at 11:25:09AM -0700, Sven via lists.yoctoproject.org wrote: > Hi, > > I have put together a recipe inheriting from go-mod. This project depends on > out-of-repo modules that sit in private repos. As long as the SSH key > required to pull the requirements is present as a file (under $HOME/.ssh), > everything works fine. However, as soon as the SSH credentials are only > available via agent and $SSH_AUTH_SOCK, the do_compile step fails. I have > traced this down to the fact that the $SSH_AUTH_SOCK environment variable is > not available to do_compile which is when the requirements are pulled. This > is the sort of error message I get: >
On Ubuntu, when the password for my SSH key is in the gnome keyring, I run: eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh); export SSH_AUTH_SOCK in the terminal that will run bitbake. No idea if it's the proper way to make it work, but for the few times I need to fetch new revisions of private repos, it's been good enough to me. Hope this helps, Cheers, Quentin
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#53354): https://lists.yoctoproject.org/g/yocto/message/53354 Mute This Topic: https://lists.yoctoproject.org/mt/82558905/21656 Mute #golang:https://lists.yoctoproject.org/g/yocto/mutehashtag/golang Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
