IDKJava / the-elements

The Elements Android particle sandbox-style game.
GNU General Public License v3.0
10 stars 5 forks source link

Unable to clone repository following instructions #42

Open Newbytee opened 3 years ago

Newbytee commented 3 years ago

Hi, I'm trying to build this from source, but it seems the build instructions assume you have more permissions than regular users are given? I could also be doing something wrong here.

When I do git clone --recursive git@github.com:IDKJava/the-elements.git it tells me the following:

buildman:~$ git clone --recursive git@github.com:IDKJava/the-elements.git
Cloning into 'the-elements'...
Warning: Permanently added the RSA host key for IP address '<address here>' to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the right access rights
and the repository exists.

Cloning using HTTPS instead works fine until it tries to clone the submodules. protobuf and Android-WVersionManager clone fine if I clone them over HTTPS by hand, but the Bitbucket the-elements repo seems to be private. Am I doing something wrong, or are the instructions wrong?

gkanwar commented 3 years ago

Hi @Newbytee, likely this is an issue with one of our private submodules that includes our API and release keys. You should not need this for development builds locally, so you probably can simply remove this submodule (TheElements-dev/src/com/idkjava/thelements/keys) before syncing.

Newbytee commented 3 years ago

Hi @Newbytee, likely this is an issue with one of our private submodules that includes our API and release keys. You should not need this for development builds locally, so you probably can simply remove this submodule (TheElements-dev/src/com/idkjava/thelements/keys) before syncing.

image

Actually, it seems the issue was that I don't have a public key added to my GitHub account. Thank you regardless.

Newbytee commented 3 years ago

Actually, I'll re-open this. The problem persists even with an ssh key as the key repostiroy it attempts to clone is not public, and because of this git gives up on cloning the subsequent repositories ones (e.g. protobuf) as well. Granted, this is something I know how to resolve, but people less familiar with git might not.