From 5c1bebb16c8056598e351565297ae6507902999d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 15 Dec 2024 08:48:42 -0600 Subject: [PATCH] output to help figure out what to do when this happens --- Makefile | 6 ------ repo.new.go | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 6d2f9fc..5ea078f 100644 --- a/Makefile +++ b/Makefile @@ -15,12 +15,6 @@ vet: goimports: goimports -w *.go -redomod: - rm -f go.* - GO111MODULE= go mod init - GO111MODULE= go mod tidy - go mod edit -go=1.20 - clean: rm -f *.pb.go -rm -f go.* diff --git a/repo.new.go b/repo.new.go index 9d0f7ba..e9327d3 100644 --- a/repo.new.go +++ b/repo.new.go @@ -18,6 +18,9 @@ func (all *Repos) NewGoPath(basepath string, gopath string, url string) (*Repo, return nil, errors.New("blank gopath") } if r := all.FindByGoPath(gopath); r != nil { + log.Info("gitpb.NewGoPath() already has gopath", r.GoPath) + log.Info("gitpb.NewGoPath() already has FullPath", r.FullPath) + log.Info("gitpb.NewGoPath() already has URL", r.URL) // already had this gopath return r, errors.New("gitpb.NewGoPath() duplicate gopath " + gopath) }