You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After following instructions for multiple private GitHub repositories, the builder still fails to pull packages due to SSH hostname resolution errors.
This is the error message:
com.example.package: Error when executing git command. ssh: Could not resolve hostname key-somehashwashere.github.com: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Where somehashwashere is a 64-character hexadecimal string and com.example.package is my package name. I have 3 packages that all fail similarly with their own hostname not being able to resolve. I believe the error might lie in the step "Prepare SSH config for unity builder" copied from the documentation.
How to reproduce
I have 3 repositories hosted privately, and I followed the instructions as best I understood them. For each private repository, I generated a private/public key on my computer, and I used the git formatted URL as described in the docs so it can be used as a deploy key. This was done for each of my 3 private projects, the public keys were added to their individual deploy settings and the private keys were created as named secrets in my repository that I am trying to build.
Package manager is able to download packages from private repositories
Additional details
The owner of the 3 private repositories is an organization I created but I am testing this with my personal account. I have access and I loaded the deploy keys directly to them.
I tested with a single private SSH key previously but this resulted in a different error ( Error when executing git command. ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory. Host key verification failed. )
I had the same error about ssh_askpass with a public repository in the package manifest so I switched the protocol to HTTPS in the package manifest file, resolving it (since it was not private)
I am using GitHub runners, not self-hosted. So they should be consistent
The text was updated successfully, but these errors were encountered:
Hey, I had the same issue not being able to resolve the hostname on a github runner. I moved my packages to be local packages tracked in the repository, but this would be nice if it could get resolved.
I'd just like to add my feedback here that this seems consistent.
To add, while the unity-builder is running, I can docker exec -it CONTAINER_NAME bin/bash and then perform a git clone on one of the sub-packages and it is able to fully clone inside of the container. This seems to be something specific with how cloning is occuring by Unity, or the image rules, for packages.
Bug description
After following instructions for multiple private GitHub repositories, the builder still fails to pull packages due to SSH hostname resolution errors.
This is the error message:
Where
somehashwashere
is a 64-character hexadecimal string andcom.example.package
is my package name. I have 3 packages that all fail similarly with their own hostname not being able to resolve. I believe the error might lie in the step "Prepare SSH config for unity builder" copied from the documentation.How to reproduce
I have 3 repositories hosted privately, and I followed the instructions as best I understood them. For each private repository, I generated a private/public key on my computer, and I used the git formatted URL as described in the docs so it can be used as a deploy key. This was done for each of my 3 private projects, the public keys were added to their individual deploy settings and the private keys were created as named secrets in my repository that I am trying to build.
Expected behavior
Package manager is able to download packages from private repositories
Additional details
The text was updated successfully, but these errors were encountered: