@@ -72,7 +72,9 @@ type SourceManager interface {
72
72
// project/source root.
73
73
DeduceProjectRoot (ip string ) (ProjectRoot , error )
74
74
75
- // SourceURLsForPath takes an import path and deduces the possible source URLs
75
+ // SourceURLsForPath takes an import path and deduces the set of source URLs
76
+ // that may refer to a canonical upstream source.
77
+ // In general, these URLs differ only by protocol (e.g. https vs. ssh), not path
76
78
SourceURLsForPath (ip string ) ([]* url.URL , error )
77
79
78
80
// Release lets go of any locks held by the SourceManager. Once called, it is
@@ -540,8 +542,9 @@ func (sm *SourceMgr) InferConstraint(s string, pi ProjectIdentifier) (Constraint
540
542
return nil , errors .Errorf ("%s is not a valid version for the package %s(%s)" , s , pi .ProjectRoot , pi .Source )
541
543
}
542
544
543
- // SourceURLsForPath takes an import path, deduces it's root path,
544
- // and returns a list of possible souce URLs for fetching it
545
+ // SourceURLsForPath takes an import path and deduces the set of source URLs
546
+ // that may refer to a canonical upstream source.
547
+ // In general, these URLs differ only by protocol (e.g. https vs. ssh), not path
545
548
func (sm * SourceMgr ) SourceURLsForPath (ip string ) ([]* url.URL , error ) {
546
549
deduced , err := sm .deduceCoord .deduceRootPath (context .TODO (), ip )
547
550
if err != nil {
0 commit comments