diff options
Diffstat (limited to 'isPrimitive.go')
| -rw-r--r-- | isPrimitive.go | 12 |
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()) } } |
