diff options
Diffstat (limited to 'clone.go')
| -rw-r--r-- | clone.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -120,7 +120,7 @@ func (f *Forge) Clone(gopath string) (*gitpb.Repo, error) { // actually does something smart func (f *Forge) finishClone(gopath string, giturl string) (*gitpb.Repo, error) { var err error - newr := f.Repos.FindByGoPath(gopath) + newr := f.FindByGoPath(gopath) if newr == nil { newr, err = f.NewGoRepo(gopath, giturl) } @@ -133,7 +133,7 @@ func (f *Forge) finishClone(gopath string, giturl string) (*gitpb.Repo, error) { newr.URL = giturl } if err := newr.RepoIgnoresGoMod(); err != nil { - log.Info("never modify go.mod or go.sum for this repo", newr.GoPath) + log.Info("never modify go.mod or go.sum for this repo", newr.GetGoPath()) log.Info("We recommend you add 'go.*' to your .gitignore file and store those files as git tag metadata") newr.ParseGoSum() return newr, nil @@ -145,7 +145,7 @@ func (f *Forge) finishClone(gopath string, giturl string) (*gitpb.Repo, error) { log.Info("todo: something went wrong probably. didn't finish. run go-mod-clean? (can't here. loop of circles)") log.Info("todo: do go mod init here directly") - log.Info("todo: try to run go mod init here", newr.GoPath) + log.Info("todo: try to run go mod init here", newr.GetGoPath()) return newr, nil } |
