From 8e9ec30b29ae53e28592e8ac7f48b2f46b8f935b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 1 Dec 2024 10:46:32 -0600 Subject: save GoDeps at the time of publication to pkg.go.dev --- repo.new.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'repo.new.go') 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 -- cgit v1.2.3