summaryrefslogtreecommitdiff
path: root/isPrimitive.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-15 15:53:08 -0600
committerJeff Carr <[email protected]>2024-12-15 15:53:08 -0600
commit01b332ceb81945ae5a5cb2b1677ab985723dc75e (patch)
treeddb0d33495106e19df02e4e3aa40cd9381656fcf /isPrimitive.go
parent5006d718fd59a3ac964750bb7890c9e0e262811b (diff)
all of this code still sucksv0.0.31
Diffstat (limited to 'isPrimitive.go')
-rw-r--r--isPrimitive.go13
1 files changed, 10 insertions, 3 deletions
diff --git a/isPrimitive.go b/isPrimitive.go
index 0455799..7755cfb 100644
--- a/isPrimitive.go
+++ b/isPrimitive.go
@@ -15,6 +15,13 @@ import (
"go.wit.com/log"
)
+// deprecate use of IsPrimitive() to this function
+// this assumes go.mod and go.sum are in a releasable state
+func (repo *Repo) SetPrimitive() error {
+ _, err := repo.IsPrimitive()
+ return err
+}
+
// Detect a 'Primative' package. Sets the isPrimative flag
// will return true if the repo is truly not dependent on _anything_ else
// like spew or lib/widget
@@ -43,9 +50,9 @@ func (repo *Repo) IsPrimitive() (bool, error) {
return false, errors.New("go.mod file is not primative")
}
if parts[0] == "go" {
- if parts[1] != "1.20" {
- log.Log(GITPBWARN, "go not set to 1.20 for", repo.GoPath)
- return false, errors.New("go not set to 1.20 for " + repo.GoPath)
+ if parts[1] != "1.21" {
+ log.Log(GITPBWARN, "go not set to 1.21 for", repo.GoPath)
+ // return false, errors.New("go not set to 1.21 for " + repo.GoPath)
}
}
}