summaryrefslogtreecommitdiff
path: root/clone.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-17 06:37:00 -0600
committerJeff Carr <[email protected]>2024-12-17 06:37:00 -0600
commitee7e8d5b2ba38bcc53b210c9a04ccff0de4a4f19 (patch)
treef7de75c50610d1fd7891834c9af7f0e555c145ce /clone.go
parentb2e51ccb9efc326fda8615b1d2ad9f2ea3f16652 (diff)
lots of changes in gitpb
Diffstat (limited to 'clone.go')
-rw-r--r--clone.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/clone.go b/clone.go
index 69e62fd..43ee482 100644
--- a/clone.go
+++ b/clone.go
@@ -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
}