xmos / xcore_iot

Other
29 stars 38 forks source link

Can't clone the submodules within the repository #586

Closed NitinMedisetti closed 1 year ago

NitinMedisetti commented 1 year ago

git clone --recurse-submodules https://github.com/xmos/xcore_sdk.git

"Cloning into 'C:/Users/{...}/xcore_sdk/modules/core'... Host key verification failed. 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:xmos/{......}' into submodule path 'C:/Users/{...}/xcore_sdk/modules/core' failed Failed to clone 'modules/core'. Retry scheduled"

This showed up for all the submodules.

keithm-xmos commented 1 year ago

Hi @NitinMedisetti, I apologize that you ran into this issue. In order to clone all the submodules, you need to have SSH authentication setup on GitHub.com. See https://docs.github.com/en/authentication/connecting-to-github-with-ssh

NitinMedisetti commented 1 year ago

Hi @keithm-xmos, I've set up SSH authentication with the help of the link you've provided. Even tested it, as shown in https://docs.github.com/en/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection I still can't clone the submodules. It's same as before.

keithm-xmos commented 1 year ago

Let's try to clone one of the submodules. Does this command work for you?

git clone git@github.com:xmos/lib_xcore_math.git

If the above command does work, try these steps to clone the xcore_sdk:

git clone git@github.com:xmos/xcore_sdk.git
cd xcore_sdk
git submodule update --init --recursive

Please let me know how this goes. Thanks @keithm-xmos

NitinMedisetti commented 1 year ago

This is what happened.

Screenshot 2023-03-08 174731

This created empty folders for submodels. Just like before.

keithm-xmos commented 1 year ago

Looks like you typed the third command incorrectly. You left out the "update"

git submodule update --init --recursive

Did the first clone of lib_xcore_math work?

NitinMedisetti commented 1 year ago

Oh, my bad. Okay, I've added "update". Now I'm back to where I've started. image

NitinMedisetti commented 1 year ago

Now, I've manually downloaded each submodule. But I just wanted to know what caused the issue and how to deal with it.

keithm-xmos commented 1 year ago

Can you please clarify what commands you ran to download each submodule? Many of the submodules also contain submodules. It would be interesting if those work but the xcore_sdk does not. For example, does this series of commands work for you?

git clone git@github.com:xmos/fwk_core.git
cd fwk_core
git submodule update --init --recursive

Thanks again!

NitinMedisetti commented 1 year ago

I didn't use any commands to download submodules. I've manually navigated to each of those submodules in GitHub and downloaded them as zip files.

git clone git@github.com:xmos/fwk_core.git
cd fwk_core
git submodule update --init --recursive

And these commands didn't work. It's the same as before. "Please make sure you have the correct access rights and the repository exists"

keithm-xmos commented 1 year ago

OK. Your zip downloads will only work if you walked through each repo and also downloaded its submodules. If you missed any, you may run into issues trying to build the applications.

Does this work for you?

git clone git@github.com:xmos/lib_xcore_math.git
NitinMedisetti commented 1 year ago

git clone git@github.com:xmos/lib_xcore_math.git Yes this works

And, I made sure I didn't miss any submodules, and the application was built successfully.

keithm-xmos commented 1 year ago

That is great to hear.

I am unsure why you were able to clone lib_xcore_math standalone but not lib_xcore_math when it is a submodule of fwk_core. This is a mystery to me and we haven't had any other users experience this same issue.

keithm-xmos commented 1 year ago

Closing issue as we are unable to reproduce.