I changed IsValid() to IsValidDir()

This commit is contained in:
Jeff Carr 2024-12-17 01:55:37 -06:00
parent 849378a95f
commit c9f1624a72
3 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ import (
// thsi will clean out everything and start over // thsi will clean out everything and start over
func doForce(repo *gitpb.Repo) error { func doForce(repo *gitpb.Repo) error {
// var perfect bool = true // 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(repo.GoPath, "is invalid. fix your repos.pb file with 'forge' first")
log.Info("") log.Info("")
log.Info("go install go.wit.com/apps/forge@latest") log.Info("go install go.wit.com/apps/forge@latest")

View File

@ -10,7 +10,7 @@ import (
// this will make go.mod and go.sum files, but you have to // this will make go.mod and go.sum files, but you have to
// have the files in .gitignore for now // have the files in .gitignore for now
func doSmart(repo *gitpb.Repo) error { 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(repo.GoPath, "is invalid. fix your repos.pb file with 'forge' first")
log.Info("") log.Info("")
log.Info("go install go.wit.com/apps/forge@latest") log.Info("go install go.wit.com/apps/forge@latest")

View File

@ -8,7 +8,7 @@ import (
) )
func doStrict(repo *gitpb.Repo) error { 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(repo.GoPath, "is invalid. fix your repos.pb file with 'forge' first")
log.Info("") log.Info("")
log.Info("go install go.wit.com/apps/forge@latest") log.Info("go install go.wit.com/apps/forge@latest")