diff options
Diffstat (limited to 'doSmart.go')
| -rw-r--r-- | doSmart.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -11,17 +11,17 @@ import ( // have the files in .gitignore for now func doSmart(repo *gitpb.Repo) error { if !repo.IsValidDir() { - log.Info(repo.GoPath, "is invalid. fix your repos.pb file with 'forge' first") + log.Info(repo.GetGoPath(), "is invalid. fix your repos.pb file with 'forge' first") log.Info("") log.Info("go install go.wit.com/apps/forge@latest") log.Info("") - return errors.New(repo.GoPath + " is invalid. fix your repository list with 'forge' first") + return errors.New(repo.GetGoPath() + " is invalid. fix your repository list with 'forge' first") } - log.Info(repo.GoPath, "is valid according to forge") + log.Info(repo.GetGoPath(), "is valid according to forge") // if the repo has go.mod in the repo... if err := repo.RepoIgnoresGoMod(); err != nil { - log.Info("never modify go.mod or go.sum for this repo", repo.GoPath) + log.Info("never modify go.mod or go.sum for this repo", repo.GetGoPath()) log.Info("We recommend you add 'go.*' to your .gitignore file and store those files as git tag metadata") repo.ParseGoSum() return nil @@ -33,7 +33,7 @@ func doSmart(repo *gitpb.Repo) error { // try to restore from the git metadata cname := repo.GetCurrentBranchName() if err := repo.AutogenRestore(cname); err == nil { - log.Info(repo.GoPath, "files were restored ok from git metadata (notes)") + log.Info(repo.GetGoPath(), "files were restored ok from git metadata (notes)") configSave = true return nil } |
