feat: generic git https (#73)

Previously, only `github.com` was supported for HTTP cloning of packages.

With this change, every git host using the http protocol (GitHub, Gitlab, Gitea) is supported :D
This commit is contained in:
Cody Boggs 2020-02-03 10:07:44 -07:00 committed by GitHub
parent 8f14d63f95
commit 0ba0ff5522
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 127 additions and 19 deletions

View file

@ -40,7 +40,17 @@ func TestParseDependency(t *testing.T) {
},
{
name: "Invalid",
path: "github.com/foo",
path: "example.com/foo",
want: nil,
},
{
name: "InvalidDomain",
path: "example.c/foo/bar",
want: nil,
},
{
name: "InvalidDomain2",
path: "examplec/foo/bar",
want: nil,
},
{