Bug 40900 - Public GitHub Repository Depends on Private Repositories
Summary: Public GitHub Repository Depends on Private Repositories
Status: REOPENED
Alias: None
Product: Android
Classification: Xamarin
Component: General (show other bugs)
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2016-05-05 04:58 UTC by Martin Vahi
Modified: 2016-05-10 02:40 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description Martin Vahi 2016-05-05 04:58:23 UTC
The public git repository at 

https://github.com/xamarin/xamarin-android

depends at private repositories. the command 

    git clone --recursive https://github.com/xamarin/xamarin-android.git

fails.

=========citation====start================
    ts2@linux-0fiz:~/tmp/xx9/xx/xa_bug$ date
    Thu May  5 07:45:37 EEST 2016
    ts2@linux-0fiz:~/tmp/xx9/xx/xa_bug$ uname -a
    Linux linux-0fiz 3.16.7-35-desktop #1 SMP PREEMPT Sun Feb 7 17:32:21 UTC 2016 (832c776) x86_64 x86_64 x86_64 GNU/Linux
    ts2@linux-0fiz:~/tmp/xx9/xx/xa_bug$ git --version
    git version 2.1.4
    ts2@linux-0fiz:~/tmp/xx9/xx/xa_bug$ git clone --recursive https://github.com/xamarin/xamarin-android.git
    Cloning into 'xamarin-android'...
    remote: Counting objects: 1080, done.
    remote: Compressing objects: 100% (51/51), done.
    remote: Total 1080 (delta 10), reused 0 (delta 0), pack-reused 1020
    Receiving objects: 100% (1080/1080), 3.52 MiB | 840.00 KiB/s, done.
    Resolving deltas: 100% (409/409), done.
    Checking connectivity... done.
    Submodule 'external/Java.Interop' (git@github.com:xamarin/Java.Interop.git) registered for path 'external/Java.Interop'
    Submodule 'external/mono' (git@github.com:mono/mono.git) registered for path 'external/mono'
    Cloning into 'external/Java.Interop'...
    Permission denied (publickey).
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    Clone of 'git@github.com:xamarin/Java.Interop.git' into submodule path 'external/Java.Interop' failed
    ts2@linux-0fiz:~/tmp/xx9/xx/xa_bug$ echo "It should be a public repo without any need for extra access rights"
    It should be a public repo without any need for extra access rights
    ts2@linux-0fiz:~/tmp/xx9/xx/xa_bug$
=========citation====end==================
Comment 1 Duncan Mak 2016-05-05 22:53:10 UTC
You should clone using this command instead - 

git clone --recursive git@github.com:xamarin/xamarin-android.git

This will require you to have GitHub account.

You can find a breakdown of the various supported protocols here - https://gist.github.com/grawity/4392747
Comment 2 Martin Vahi 2016-05-06 00:31:32 UTC
I do not think so. The proposed 

    git clone --recursive git@github.com:xamarin/xamarin-android.git

fails as well, as cited below.

-----citation---start----
ts2@linux-0fiz:~/mittevarundatav/koostamisel_olevad_kollektsioonid/2016_xx_xx_github_com_mono/the_repository_clones$ ls ./xamarin-and*
ls: cannot access ./xamarin-and*: No such file or directory
ts2@linux-0fiz:~/mittevarundatav/koostamisel_olevad_kollektsioonid/2016_xx_xx_github_com_mono/the_repository_clones$ git clone --recursive git@github.com:xamarin/xamarin-android.git
Cloning into 'xamarin-android'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
ts2@linux-0fiz:~/mittevarundatav/koostamisel_olevad_kollektsioonid/2016_xx_xx_github_com_mono/the_repository_clones$ git --version
git version 2.1.4
ts2@linux-0fiz:~/mittevarundatav/koostamisel_olevad_kollektsioonid/2016_xx_xx_github_com_mono/the_repository_clones$ uname -a
Linux linux-0fiz 3.16.7-35-desktop #1 SMP PREEMPT Sun Feb 7 17:32:21 UTC 2016 (832c776) x86_64 x86_64 x86_64 GNU/Linux
ts2@linux-0fiz:~/mittevarundatav/koostamisel_olevad_kollektsioonid/2016_xx_xx_github_com_mono/the_repository_clones$ date
Fri May  6 03:24:25 EEST 2016
ts2@linux-0fiz:~/mittevarundatav/koostamisel_olevad_kollektsioonid/2016_xx_xx_github_com_mono/the_repository_clones$
-----citation---start----
Comment 3 Duncan Mak 2016-05-07 02:05:35 UTC
The reason why you were not able to checkout is because you did not have a working GitHub account set up in your terminal session.

If you have a working setup, you'll be able to run `ssh git@github.com` and see that you're authenticated by GitHub.

I have changed how submodules are referenced so that an authenticated GitHub user is no longer a requirement. You will now be able to clone using either SSH, git:// or http://.

However, in order to push commits, it is still a requirement that you be authenticated against GitHub.
Comment 4 Martin Vahi 2016-05-10 02:40:10 UTC
I'm not sure if the mono account example fits here,
but at least at the xamarin accoount
there are still some repositories to update...

=====citation===start======================
ts2@linux-0fiz:~/tmp/xx9/xx/bug_demo$ ls
ts2@linux-0fiz:~/tmp/xx9/xx/bug_demo$ date
Tue May 10 05:17:24 EEST 2016
ts2@linux-0fiz:~/tmp/xx9/xx/bug_demo$ git clone --recursive https://github.com/xamarin/urho.git
Cloning into 'urho'...
remote: Counting objects: 10758, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 10758 (delta 1), reused 0 (delta 0), pack-reused 10749
Receiving objects: 100% (10758/10758), 25.77 MiB | 405.00 KiB/s, done.
Resolving deltas: 100% (8576/8576), done.
Checking connectivity... done.
Submodule 'Samples' (git@github.com:xamarin/urho-samples.git) registered for path 'Samples'
Submodule 'Urho3D/Source' (git@github.com:xamarin/Urho3D.git) registered for path 'Urho3D/Source'
Cloning into 'Samples'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Clone of 'git@github.com:xamarin/urho-samples.git' into submodule path 'Samples' failed
ts2@linux-0fiz:~/tmp/xx9/xx/bug_demo$ git --version
git version 2.1.4
ts2@linux-0fiz:~/tmp/xx9/xx/bug_demo$ uname -a
Linux linux-0fiz 3.16.7-35-desktop #1 SMP PREEMPT Sun Feb 7 17:32:21 UTC 2016 (832c776) x86_64 x86_64 x86_64 GNU/Linux
ts2@linux-0fiz:~/tmp/xx9/xx/bug_demo$ date
Tue May 10 05:18:22 EEST 2016
ts2@linux-0fiz:~/tmp/xx9/xx/bug_demo$ ls
urho
ts2@linux-0fiz:~/tmp/xx9/xx/bug_demo$ git clone --recursive https://github.com/mono/cocos2d-xna.git
Cloning into 'cocos2d-xna'...
remote: Counting objects: 23667, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 23667 (delta 0), reused 0 (delta 0), pack-reused 23655
Receiving objects: 100% (23667/23667), 107.10 MiB | 511.00 KiB/s, done.
Resolving deltas: 100% (16497/16497), done.
Checking connectivity... done.
Checking out files: 100% (4503/4503), done.
Submodule 'MonoGame' (git://github.com/Cocos2DXNA/MonoGame.git) registered for path 'MonoGame'
Submodule 'tools/ouya' (https://github.com/slygamer/ouya-csharp.git) registered for path 'tools/ouya'
Cloning into 'MonoGame'...
remote: Counting objects: 65471, done.
remote: Total 65471 (delta 0), reused 0 (delta 0), pack-reused 65470
Receiving objects: 100% (65471/65471), 55.77 MiB | 770.00 KiB/s, done.
Resolving deltas: 100% (47804/47804), done.
Checking connectivity... done.
Submodule path 'MonoGame': checked out 'b7fca819255ad4d8d754be026f2a66ddbe470a4e'
Submodule 'ThirdParty/Kickstart' (https://github.com/OutOfOrder/MonoKickstart.git) registered for path 'ThirdParty/Kickstart'
Submodule 'ThirdParty/Libs' (https://github.com/kungfubanana/MonoGame-Dependencies.git) registered for path 'ThirdParty/Libs'
Cloning into 'ThirdParty/Kickstart'...
remote: Counting objects: 228, done.
remote: Total 228 (delta 0), reused 0 (delta 0), pack-reused 228
Receiving objects: 100% (228/228), 54.88 MiB | 887.00 KiB/s, done.
Resolving deltas: 100% (98/98), done.
Checking connectivity... done.
Submodule path 'MonoGame/ThirdParty/Kickstart': checked out '5e03d0127e514dcf8a63ae9ebd385cd392dcde52'
Cloning into 'ThirdParty/Libs'...
Username for 'https://github.com': martinvahi
Password for 'https://martinvahi@github.com': 
remote: Repository not found.
fatal: repository 'https://github.com/kungfubanana/MonoGame-Dependencies.git/' not found
Clone of 'https://github.com/kungfubanana/MonoGame-Dependencies.git' into submodule path 'ThirdParty/Libs' failed
Cloning into 'tools/ouya'...
remote: Counting objects: 396, done.
remote: Total 396 (delta 0), reused 0 (delta 0), pack-reused 396
Receiving objects: 100% (396/396), 3.64 MiB | 304.00 KiB/s, done.
Resolving deltas: 100% (175/175), done.
Checking connectivity... done.
Submodule path 'tools/ouya': checked out '5f712a4b3845bad2974b30bc0c243eb503812ea9'
Failed to recurse into submodule path 'MonoGame'
ts2@linux-0fiz:~/tmp/xx9/xx/bug_demo$ date
Tue May 10 05:30:53 EEST 2016
ts2@linux-0fiz:~/tmp/xx9/xx/bug_demo$ ls
cocos2d-xna  urho
ts2@linux-0fiz:~/tmp/xx9/xx/bug_demo$
=====citation===end======================

Note You need to log in before you can comment on or make changes to this bug.