Replace git cloner with go getter to support various target

This commit is contained in:
Yujun Zhang
2020-01-29 18:18:22 +08:00
committed by Yujun Zhang
parent 6c2c08c4df
commit fae66446a8
7 changed files with 228 additions and 31 deletions

View File

@@ -62,6 +62,11 @@ func (x *RepoSpec) Raw() string {
return x.raw
}
func (x *RepoSpec) WithRaw(s string) *RepoSpec {
x.raw = s
return x
}
func (x *RepoSpec) AbsPath() string {
return x.Dir.Join(x.Path)
}