mattn/gom

More general import paths

tchap opened this issue · 0 comments

Hi,

I was reading through the source code, wondering how you handle private repositories and stuff. I am not sure it's a good idea to implement private repositories by just prepending git@ or so. That will not work if the hosting service is not GitHub or BitBucket, there can be some other username people might want to use. Or they might feel like cloning over https.

To put it simply, it could make sense to do something similar to what package.json for NPM does:

git://github.com/user/project.git#commit-ish
git+ssh://user@hostname:project.git#commit-ish
git+ssh://user@hostname/project.git#commit-ish
git+http://user@hostname/project/blah.git#commit-ish
git+https://user@hostname/project/blah.git#commit-ish

And something similar for other versioning systems.

What do you think?

Regards,
Ondrej Kupka