diff options
| author | Jeff Carr <[email protected]> | 2024-12-17 01:55:37 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-17 01:55:37 -0600 |
| commit | c9f1624a72e1cf43dd32f878e56ff4e3c57ef5e6 (patch) | |
| tree | c92b655f70a5fa7771be52eb74f93514c624e5f1 | |
| parent | 849378a95f334017f86f1675d35306f6fcc3e3bf (diff) | |
I changed IsValid() to IsValidDir()
| -rw-r--r-- | doForce.go | 2 | ||||
| -rw-r--r-- | doSmart.go | 2 | ||||
| -rw-r--r-- | doStrict.go | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -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") 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") |
