summaryrefslogtreecommitdiff
path: root/repo.new.go
diff options
context:
space:
mode:
Diffstat (limited to 'repo.new.go')
-rw-r--r--repo.new.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/repo.new.go b/repo.new.go
index 60dd263..0246ddf 100644
--- a/repo.new.go
+++ b/repo.new.go
@@ -33,8 +33,18 @@ func (all *Repos) NewGoPath(basepath string, gopath string) (*Repo, error) {
FullPath: filepath.Join(basepath, gopath),
GoPath: gopath,
}
+ newr.Tags = new(GitTags)
// newr.UpdateGit()
newr.UpdateGitTags()
+ newr.GoDeps = new(GoDeps)
+ // newr.RedoGoMod()
+
+ switch newr.RepoType() {
+ case "library":
+ newr.GoLibrary = true
+ case "binary":
+ newr.GoBinary = true
+ }
all.AppendUniqueGoPath(&newr)
return &newr, nil