Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch private repo #107

Closed
Phunk87 opened this issue Mar 13, 2015 · 7 comments
Closed

Fetch private repo #107

Phunk87 opened this issue Mar 13, 2015 · 7 comments

Comments

@Phunk87
Copy link
Contributor

Phunk87 commented Mar 13, 2015

Now, clib fetch raw file directly, so when i develop some stuff that included in a private repo, I just can not add that private repo as my new private repo dependency.

I wonder if clib can git clone the full repo then pick up and keep the files.

@jwerle
Copy link
Member

jwerle commented Mar 13, 2015

I think this http://stackoverflow.com/a/22314262 has some useful information. If I had time, I would implement this.

@mrinalwadhwa
Copy link

Until this and the broader #51 are fixed, here is my quick hack around this issue to support private Github repos: https://github.com/mrinalwadhwa/raw-github

@stephenmathieson
Copy link
Member

private repos should definitely happen. it'll require a bit of a rewrite, but it's worth it. unfortunately, i've had little-to-no OSS time lately. i am, however, accepting PRs ;)

@mrinalwadhwa
Copy link

This is the URL format that works for private repos "https://api.github.com/repos/#{user}/#{repo}/contents/#{path}?ref=#{version}&access_token=#{token}"

@mrinalwadhwa
Copy link

This should be easy to support in clib-package, but:

  1. Is a github private repo only fix worth while given the general discussion in Support repositories hosted outside of GitHub #51 ?
  2. Where is the right place to make the Github Access Token configurable?

@Phunk87
Copy link
Contributor Author

Phunk87 commented Mar 30, 2015

@stephenmathieson Thanks for your response.
@mrinalwadhwa I think the way to clone and pick up files has more scalability, it can fix #51 at the same time.

@jwerle
Copy link
Member

jwerle commented Jul 23, 2020

You can now do this with personal access tokens by providing a -t, --token <token> argument to the clib install or clib update commands

@jwerle jwerle closed this as completed Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants