add support for custom vcs handlers

This commit is contained in:
Serge Zaitsev
2018-11-06 14:38:55 +01:00
parent fc10c1c983
commit 5fed7316c6
5 changed files with 102 additions and 0 deletions

View File

@@ -27,6 +27,11 @@ func (v Version) Hash() string {
return fields[2]
}
// String returns a string representation of a version
func (v Version) String() string {
return string(v)
}
// Module is a source code snapshot for which one can get the commit timestamp
// or the actual ZIP with the source code in it.
type Module interface {