Issues with Git clone

Hi, I have an issue with cloning the project repository.
I tried my Windows machine and Virtual Ubuntu. Result is the same.
It seems like the SDK submodule is set with SSH (not HTTPS) path but I’m not sure. Can you help me please?


[ec2-user@ip-ip bigclown]$ git clone https://github.com/bigclownlabs/bc-core-module.git

Cloning into 'bc-core-module'...
remote: Counting objects: 85, done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 85 (delta 16), reused 0 (delta 0), pack-reused 49
Unpacking objects: 100% (85/85), done.
Checking connectivity... done.

[ec2-user@ip-ip bigclown]$ cd bc-core-module/
[ec2-user@ip-ip bc-core-module]$ make update

Initializing Git submodules...
Submodule 'sdk' (git@github.com:bigclownlabs/bc-core-module-sdk.git) registered for path 'sdk'
Cloning into 'sdk'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:bigclownlabs/bc-core-module-sdk.git' into submodule path 'sdk' failed
make: *** [sdk] Error 128

less .git/config

[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote “origin”]
url = https://github.com/bigclownlabs/bc-core-module.git
fetch = +refs/heads/:refs/remotes/origin/
[branch “master”]
remote = origin
merge = refs/heads/master
[submodule “sdk”]
url = git@github.com:bigclownlabs/bc-core-module-sdk.git

Use this

git clone --recursive https://github.com/bigclownlabs/bc-core-module.git

It’s the same

I think the issue is with that
url = git@github.com:bigclownlabs/bc-core-module-sdk.git
is the SSH path and not HTTPS, but I’m not sure.
it’s on the last line in my first post.

thanks


osboxes@osboxes:~/bc-core-module$ git clone --recursive https://github.com/bigclownlabs/bc-core-module.git
Cloning into ‘bc-core-module’…
remote: Counting objects: 85, done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 85 (delta 16), reused 0 (delta 0), pack-reused 49
Unpacking objects: 100% (85/85), done.
Checking connectivity… done.
Submodule ‘sdk’ (git@github.com:bigclownlabs/bc-core-module-sdk.git) registered for path 'sdk’
Cloning into ‘sdk’…
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of ‘git@github.com:bigclownlabs/bc-core-module-sdk.git’ into submodule path ‘sdk’ failed

Definitely this is a “bug” in current repository settings:
https://github.com/bigclownlabs/bc-core-module/blob/master/.gitmodules

It is now configured to SSH which is wrong.

You do not have to use git clone --recursive anymore. Makefile can detect missing sdk/Makefile.in file and will pull the submodule automatically.

Moreover now you can do “make update” to update the SDK to the most recent version.

Thanks for pointing this out! P.

I had the same issue, so I cloned only repository bc-core-module and changed file .gitmodules:

[submodule "sdk"]
    path = sdk
    url = https://github.com/bigclownlabs/bc-core-module-sdk.git

I forgot to post it here, but it has been resolved here:
https://github.com/bigclownlabs/bc-core-module/commit/cb8e49a3fba72ab2f867b19e86cd325aaf61c1a9