How to provide easy access to open source code for external tools and sites?
For instance, the Go language has a tool that scans your source code for dependencies crafted in a certain form (e.g. 'import "github.com/johndoe/mylib"' and automatically downloads them from various source code hosting sites on the internet. Other languages and development frameworks have similar capabilities.
There are also cases where other websites can crawl and index the source code from popular open source hosting websites on the internet (e.g. http://godoc.org).
It would be great if jazzhub could provide some kind of unauthenticated access to the latest source code for an open project for these kinds of purposes. It might also help to increase general awareness of this site.
Thanks,
Chris
One answer
Comments
Hi Scott,
The "go get" tool relies on a certain naming convention (e.g. import "github.com/johndoe/mylib"). The first part is the internet site The second is the username of the project owner. Finally, the last part is the project name.
Go get will probe for git/svn/bazaar repos if the first segment of the import is of the form "github.com" or "jazz.net." To do this it relies on the CLI tool for each of the scm systems (skipping any that are not installed on your system) with some built-in knowledge of the correct command-line options to use. If a ping is successful then it knows the command-line options to pull down the code for each type of scm, again relying on launching the cli tool for the scm system.
I'm not sure if this will fit very well with RTC SCM at the moment because there's no way to download directly from a stream (not a repo workspace) using the CLI. There was some prototype work done recently to provide a zip/tar download option from the SCM web UI that could be beneficial but I don't know if it has made it into a an RTC release yet. In any case authenticated accss is required.
re "I'm not sure if this will fit very well with RTC SCM..."
I'm definitely interesting in learning more about this "vmc" support. It would be great if I could propose a patch to the standard "go get" tool to let people download source from JazzHub.