@@ -67,7 +67,7 @@ func (m maybeGitSource) try(cachedir string, an ProjectAnalyzer) (source, string
67
67
path := filepath .Join (cachedir , "sources" , sanitizer .Replace (ustr ))
68
68
r , err := vcs .NewGitRepo (ustr , path )
69
69
if err != nil {
70
- return nil , "" , err
70
+ return nil , ustr , err
71
71
}
72
72
73
73
src := & gitSource {
@@ -85,7 +85,7 @@ func (m maybeGitSource) try(cachedir string, an ProjectAnalyzer) (source, string
85
85
if ! r .CheckLocal () {
86
86
_ , err = src .listVersions ()
87
87
if err != nil {
88
- return nil , "" , err
88
+ return nil , ustr , err
89
89
}
90
90
}
91
91
@@ -112,7 +112,7 @@ func (m maybeGopkginSource) try(cachedir string, an ProjectAnalyzer) (source, st
112
112
ustr := m .url .String ()
113
113
r , err := vcs .NewGitRepo (ustr , path )
114
114
if err != nil {
115
- return nil , "" , err
115
+ return nil , ustr , err
116
116
}
117
117
118
118
src := & gopkginSource {
@@ -133,7 +133,7 @@ func (m maybeGopkginSource) try(cachedir string, an ProjectAnalyzer) (source, st
133
133
if ! r .CheckLocal () {
134
134
_ , err = src .listVersions ()
135
135
if err != nil {
136
- return nil , "" , err
136
+ return nil , ustr , err
137
137
}
138
138
}
139
139
@@ -149,10 +149,10 @@ func (m maybeBzrSource) try(cachedir string, an ProjectAnalyzer) (source, string
149
149
path := filepath .Join (cachedir , "sources" , sanitizer .Replace (ustr ))
150
150
r , err := vcs .NewBzrRepo (ustr , path )
151
151
if err != nil {
152
- return nil , "" , err
152
+ return nil , ustr , err
153
153
}
154
154
if ! r .Ping () {
155
- return nil , "" , fmt .Errorf ("Remote repository at %s does not exist, or is inaccessible" , ustr )
155
+ return nil , ustr , fmt .Errorf ("Remote repository at %s does not exist, or is inaccessible" , ustr )
156
156
}
157
157
158
158
src := & bzrSource {
@@ -183,10 +183,10 @@ func (m maybeHgSource) try(cachedir string, an ProjectAnalyzer) (source, string,
183
183
path := filepath .Join (cachedir , "sources" , sanitizer .Replace (ustr ))
184
184
r , err := vcs .NewHgRepo (ustr , path )
185
185
if err != nil {
186
- return nil , "" , err
186
+ return nil , ustr , err
187
187
}
188
188
if ! r .Ping () {
189
- return nil , "" , fmt .Errorf ("Remote repository at %s does not exist, or is inaccessible" , ustr )
189
+ return nil , ustr , fmt .Errorf ("Remote repository at %s does not exist, or is inaccessible" , ustr )
190
190
}
191
191
192
192
src := & hgSource {
0 commit comments