I changed IsValid() to IsValidDir()
This commit is contained in:
parent
849378a95f
commit
c9f1624a72
|
@ -11,7 +11,7 @@ import (
|
|||
// thsi will clean out everything and start over
|
||||
func doForce(repo *gitpb.Repo) error {
|
||||
// var perfect bool = true
|
||||
if !repo.IsValid() {
|
||||
if !repo.IsValidDir() {
|
||||
log.Info(repo.GoPath, "is invalid. fix your repos.pb file with 'forge' first")
|
||||
log.Info("")
|
||||
log.Info("go install go.wit.com/apps/forge@latest")
|
||||
|
|
|
@ -10,7 +10,7 @@ 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.IsValid() {
|
||||
if !repo.IsValidDir() {
|
||||
log.Info(repo.GoPath, "is invalid. fix your repos.pb file with 'forge' first")
|
||||
log.Info("")
|
||||
log.Info("go install go.wit.com/apps/forge@latest")
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
)
|
||||
|
||||
func doStrict(repo *gitpb.Repo) error {
|
||||
if !repo.IsValid() {
|
||||
if !repo.IsValidDir() {
|
||||
log.Info(repo.GoPath, "is invalid. fix your repos.pb file with 'forge' first")
|
||||
log.Info("")
|
||||
log.Info("go install go.wit.com/apps/forge@latest")
|
||||
|
|
Loading…
Reference in New Issue