diff options
| author | Jeff Carr <[email protected]> | 2024-12-15 08:48:42 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-15 08:48:42 -0600 |
| commit | 5c1bebb16c8056598e351565297ae6507902999d (patch) | |
| tree | 26a88a31f8160483c0edaa1583582803533b5d65 | |
| parent | 5341a70557f00b07e95802348c03aa25781ff5b7 (diff) | |
output to help figure out what to do when this happens
| -rw-r--r-- | Makefile | 6 | ||||
| -rw-r--r-- | repo.new.go | 3 |
2 files changed, 3 insertions, 6 deletions
@@ -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) } |
