Home Download Buy Blog Forum Support

Package Control Add Repository/Channel

Package Control Add Repository/Channel

Postby dearborn on Wed Feb 15, 2012 6:55 am

Total newb questions, although I still think these should be addressed in the docs:

1. What is the difference between Add Repository and Add Repository Channel in the Package Manager?
2. Is this the same as cloning a repo directory into the Packages directory?
3. Which URI scheme should we use https:// vs git:// ?

Thanks!
dearborn
 
Posts: 7
Joined: Wed Feb 15, 2012 6:42 am

Re: Package Control Add Repository/Channel

Postby wbond on Wed Feb 15, 2012 1:10 pm

A repository channel is a list of repositories. Repositories contain one or more packages. By default Package Control ships with a default channel, http://sublime.wbond.net/repositories.json.

Unless you are planning on maintaining an ecosystem of repositories separate from the default one, you probably just want to Add Repository. I'll be sure in the next release to just call it a Channel, not a Repository Channel. I should also add some more user-focused docs about the difference.

Package Control uses http to download packages from GitHub, BitBucket and other sources. You will get a similar effect by doing a git checkout, it is just that Package Control automatically keeps your packages up-to-date automatically and offers some things like messaging and usage stats (http://wbond.net/sublime_packages/community) to package developers.

If you want to add a GitHub repo to Sublime that is not included in the default channel, you want to use the Add Repository command and paste in an https://github.com/user/repo URL.
wbond
 
Posts: 528
Joined: Mon Feb 28, 2011 5:33 am

Re: Package Control Add Repository/Channel

Postby dearborn on Wed Feb 15, 2012 6:15 pm

Very helpful! Thanks for the detailed response!
dearborn
 
Posts: 7
Joined: Wed Feb 15, 2012 6:42 am


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 22 guests