Closed NitinMedisetti closed 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
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.
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
This is what happened.
This created empty folders for submodels. Just like before.
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?
Oh, my bad.
Okay, I've added "update". Now I'm back to where I've started.
Now, I've manually downloaded each submodule. But I just wanted to know what caused the issue and how to deal with it.
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!
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"
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
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.
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.
Closing issue as we are unable to reproduce.
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.