summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-17 01:55:37 -0600
committerJeff Carr <[email protected]>2024-12-17 01:55:37 -0600
commitc9f1624a72e1cf43dd32f878e56ff4e3c57ef5e6 (patch)
treec92b655f70a5fa7771be52eb74f93514c624e5f1
parent849378a95f334017f86f1675d35306f6fcc3e3bf (diff)
I changed IsValid() to IsValidDir()
-rw-r--r--doForce.go2
-rw-r--r--doSmart.go2
-rw-r--r--doStrict.go2
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")