summaryrefslogtreecommitdiff
path: root/isPrimitive.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-08 03:13:09 -0600
committerJeff Carr <[email protected]>2025-01-08 03:13:09 -0600
commitb0fca659c57dd2cb6a88a74d1a349117a3908124 (patch)
treed1e43473858cead9872a4652aaaeed85dd2afd38 /isPrimitive.go
parentebda2ea222ed9f1d348d5d3e0cffb9c9f9c0acec (diff)
fix the dumb names
Diffstat (limited to 'isPrimitive.go')
-rw-r--r--isPrimitive.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/isPrimitive.go b/isPrimitive.go
index e55665e..e935cec 100644
--- a/isPrimitive.go
+++ b/isPrimitive.go
@@ -28,11 +28,11 @@ func (repo *Repo) setPrimitive() error {
// it assumes go mod ran init and tidy ran without error
func (repo *Repo) computePrimitive() (bool, error) {
// go mod init & go mod tidy ran without errors
- log.Log(GITPB, "isPrimitiveGoMod()", repo.FullPath)
+ log.Log(INFO, "isPrimitiveGoMod()", repo.FullPath)
tmp := filepath.Join(repo.FullPath, "go.mod")
gomod, err := os.Open(tmp)
if err != nil {
- log.Log(GITPB, "missing go.mod", repo.FullPath)
+ log.Log(INFO, "missing go.mod", repo.FullPath)
return false, err
}
defer gomod.Close()
@@ -47,17 +47,17 @@ func (repo *Repo) computePrimitive() (bool, error) {
line := strings.TrimSpace(scanner.Text())
parts := strings.Fields(line)
- log.Log(GITPB, " gomod:", parts)
+ log.Log(INFO, " gomod:", parts)
if len(parts) >= 1 {
- log.Log(GITPB, " gomod: part[0] =", parts[0])
+ log.Log(INFO, " gomod: part[0] =", parts[0])
if parts[0] == "require" {
- log.Log(GITPB, " should return false here")
+ log.Log(INFO, " should return false here")
return false, errors.New("go.mod file is not primitive")
}
/*
if parts[0] == "go" {
if parts[1] != "1.21" {
- log.Log(GITPBWARN, "go not set to 1.21 for", repo.GetGoPath())
+ log.Log(WARN, "go not set to 1.21 for", repo.GetGoPath())
// return false, errors.New("go not set to 1.21 for " + repo.GetGoPath())
}
}