Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Error while clicking on Sync #1668

Closed
laurentkempe opened this issue May 16, 2018 · 6 comments
Closed

Error while clicking on Sync #1668

laurentkempe opened this issue May 16, 2018 · 6 comments
Labels

Comments

@laurentkempe
Copy link

Working on the #1667 I tried from Visual Studio to click on Sync to get one update of the sub modules

image

Here is the error in text

Synchronizing submodule url for 'script'
Synchronizing submodule url for 'submodules/akavache'
Synchronizing submodule url for 'submodules/octokit.net'
Synchronizing submodule url for 'submodules/reactiveui'
Synchronizing submodule url for 'submodules/splat'
Cloning into 'C:/Users/laure/projects/GithubVisualStudio/script'...
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 '[email protected]:github/VisualStudioBuildScripts' into submodule path 'C:/Users/laure/projects/GithubVisualStudio/script' failed
Failed to clone 'script'. Retry scheduled
Cloning into 'C:/Users/laure/projects/GithubVisualStudio/script'...
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 '[email protected]:github/VisualStudioBuildScripts' into submodule path 'C:/Users/laure/projects/GithubVisualStudio/script' failed
Failed to clone 'script' a second time, aborting

Any clue what could be the problem?

@jcansdale
Copy link
Collaborator

Oops, this is unfortunate. The submodule that needed to be updated in this case was akavache. You don't have access to github/VisualStudioBuildScripts because it's private to GitHub. All it means is that external developers need to manually populate the src/GitHub.Api/ApiClientConfiguration_User.cs key.

Don't worry about this unless you're experiencing other issues with it.

@grokys
Copy link
Contributor

grokys commented May 16, 2018

@laurentkempe did you do run git submodule deinit script after checkout as described in the build instructions? If so, then I think we have a bug because the submodule update shouldn't be trying to update that submodule.

@laurentkempe
Copy link
Author

@grokys I think I did, but I have a doubt now! I will do it again to see

@laurentkempe
Copy link
Author

@grokys I did a new checkout and followed the process and still get the same error!

@drguthals
Copy link
Contributor

I've had a similar error:
screen shot 2018-06-28 at 10 28 34 am

@jcansdale
Copy link
Collaborator

jcansdale commented Aug 7, 2018

I think this is a bit of a special case. It happens when a user does a Sync submodules on a repository that includes a submodule they don't have access to (in this case the script submodule).

I'm not sure what it would be best to do in this situation. The default error includes the following:

image

This error is correct and includes a reasonable suggestion.

Since this is an edge case and the error is correct, I'm going to close. Please let me know if you think I'm being too hasty!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants