mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-12 08:00:05 +01:00
Fix subgroup parsing on subsequent installs (#93)
* Fix subgroup parsing on subsequent installs * enforce .git as remote suffix * fix integration tests * do not modify pointer receiver in getters * fix merged integration tests
This commit is contained in:
parent
d78a05a86f
commit
50b717beab
6 changed files with 28 additions and 28 deletions
|
|
@ -53,7 +53,7 @@ func TestParseGit(t *testing.T) {
|
|||
Subdir: "/ksonnet.beta.3",
|
||||
}},
|
||||
},
|
||||
wantRemote: "https://github.com/ksonnet/ksonnet-lib",
|
||||
wantRemote: "https://github.com/ksonnet/ksonnet-lib.git",
|
||||
},
|
||||
{
|
||||
name: "ssh.ssh",
|
||||
|
|
@ -82,7 +82,7 @@ func TestParseGit(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
wantRemote: "https://example.com/foo/bar",
|
||||
wantRemote: "https://example.com/foo/bar.git",
|
||||
},
|
||||
{
|
||||
name: "ValidGitNoScheme",
|
||||
|
|
@ -99,7 +99,7 @@ func TestParseGit(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
wantRemote: "https://example.com/foo/bar",
|
||||
wantRemote: "https://example.com/foo/bar.git",
|
||||
},
|
||||
{
|
||||
name: "ValidGitPath",
|
||||
|
|
@ -116,7 +116,7 @@ func TestParseGit(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
wantRemote: "https://example.com/foo/bar",
|
||||
wantRemote: "https://example.com/foo/bar.git",
|
||||
},
|
||||
{
|
||||
name: "ValidGitVersion",
|
||||
|
|
@ -133,7 +133,7 @@ func TestParseGit(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
wantRemote: "https://example.com/foo/bar",
|
||||
wantRemote: "https://example.com/foo/bar.git",
|
||||
},
|
||||
{
|
||||
name: "ValidGitPathVersion",
|
||||
|
|
@ -150,7 +150,7 @@ func TestParseGit(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
wantRemote: "https://example.com/foo/bar",
|
||||
wantRemote: "https://example.com/foo/bar.git",
|
||||
},
|
||||
{
|
||||
name: "ValidGitSubdomain",
|
||||
|
|
@ -167,7 +167,7 @@ func TestParseGit(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
wantRemote: "https://git.example.com/foo/bar",
|
||||
wantRemote: "https://git.example.com/foo/bar.git",
|
||||
},
|
||||
{
|
||||
name: "ValidGitSubgroups",
|
||||
|
|
@ -184,7 +184,7 @@ func TestParseGit(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
wantRemote: "https://example.com/group/subgroup/repository",
|
||||
wantRemote: "https://example.com/group/subgroup/repository.git",
|
||||
},
|
||||
{
|
||||
name: "ValidGitSubgroupSubDir",
|
||||
|
|
@ -201,7 +201,7 @@ func TestParseGit(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
wantRemote: "https://example.com/group/subgroup/repository",
|
||||
wantRemote: "https://example.com/group/subgroup/repository.git",
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue