clibs/clib

Fetch private repo

Phunk87 opened this issue · 7 comments

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.

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

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

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 ;)

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 #51 ?
  2. Where is the right place to make the Github Access Token configurable?

@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.

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