summaryrefslogtreecommitdiff
path: root/repo.new.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-01 10:46:32 -0600
committerJeff Carr <[email protected]>2024-12-01 10:46:32 -0600
commit8e9ec30b29ae53e28592e8ac7f48b2f46b8f935b (patch)
tree587c3e588629d3e76a7af9555b460a2d224e61d6 /repo.new.go
parent455ea31d70b3dfa95ca4f269e42cf6a8dcf5f0d9 (diff)
save GoDeps at the time of publication to pkg.go.dev
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