diff options
Diffstat (limited to 'doSmart.go')
| -rw-r--r-- | doSmart.go | 15 |
1 files changed, 2 insertions, 13 deletions
@@ -1,8 +1,6 @@ package main import ( - "errors" - "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" ) @@ -10,19 +8,10 @@ import ( // this will make go.mod and go.sum files, but you have to // have the files in .gitignore for now func doSmart(repo *gitpb.Repo) error { - if !repo.IsValidDir() { - 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.GetGoPath() + " is invalid. fix your repository list with 'forge' first") - } - 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.GetGoPath()) - log.Info("We recommend you add 'go.*' to your .gitignore file and store those files as git tag metadata") + log.Info("go-mod-clean can not run on this repo", repo.GetGoPath()) + log.Info("go.mod and go.sum must be git metadata to continue") repo.ParseGoSum() return nil } |
