From c9f1624a72e1cf43dd32f878e56ff4e3c57ef5e6 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 17 Dec 2024 01:55:37 -0600 Subject: [PATCH] I changed IsValid() to IsValidDir() --- doForce.go | 2 +- doSmart.go | 2 +- doStrict.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doForce.go b/doForce.go index c2397c4..9c9b58f 100644 --- a/doForce.go +++ b/doForce.go @@ -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") diff --git a/doSmart.go b/doSmart.go index 46c3d1d..f5588bf 100644 --- a/doSmart.go +++ b/doSmart.go @@ -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") diff --git a/doStrict.go b/doStrict.go index 51a50d9..39192bd 100644 --- a/doStrict.go +++ b/doStrict.go @@ -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")