summaryrefslogtreecommitdiff
path: root/gitConfig.go
diff options
context:
space:
mode:
Diffstat (limited to 'gitConfig.go')
-rw-r--r--gitConfig.go13
1 files changed, 10 insertions, 3 deletions
diff --git a/gitConfig.go b/gitConfig.go
index 5509ccf..52a055b 100644
--- a/gitConfig.go
+++ b/gitConfig.go
@@ -209,11 +209,11 @@ func (rs *RepoStatus) CheckPrimativeGoMod() bool {
line := strings.TrimSpace(scanner.Text())
parts := strings.Split(line, " ")
- log.Log(WARN, " gomod:", parts)
+ log.Log(INFO, " gomod:", parts)
if len(parts) >= 1 {
- log.Log(WARN, " gomod: part[0] =", parts[0])
+ log.Log(INFO, " gomod: part[0] =", parts[0])
if parts[0] == "require" {
- log.Log(WARN, " should return false here")
+ log.Log(INFO, " should return false here")
return false
}
@@ -354,6 +354,9 @@ func (rs *RepoStatus) CheckSafeGoSumRemake() (bool, []string) {
}
} else {
switch goSumS {
+ case "SAFE":
+ log.Log(WARN, " USER VERSIONS MISMATCH", version, userversion)
+ log.Log(WARN, " IGNORE SAFE REPO")
case "CLEAN":
log.Log(WARN, " USER VERSIONS MISMATCH", version, userversion)
log.Log(WARN, " IGNORE CLEAN REPO")
@@ -454,6 +457,10 @@ func (rs *RepoStatus) MakeRedomod() {
var b bool
var output string
var worked bool = true
+ if rs.ReadOnly() {
+ log.Log(WARN, "will not go mod redo read only repos", rs.String())
+ return
+ }
os.Unsetenv("GO111MODULE")
path := rs.realPath.String()