diff --git a/gitConfig.go b/gitConfig.go index 611cb7e..e7c581b 100644 --- a/gitConfig.go +++ b/gitConfig.go @@ -463,14 +463,14 @@ func (rs *RepoStatus) CheckGoSum() (bool, string) { return true, "" } -func (rs *RepoStatus) MakeRedomod() { +func (rs *RepoStatus) MakeRedomod() bool { var err error 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 + return false } os.Unsetenv("GO111MODULE") @@ -495,6 +495,7 @@ func (rs *RepoStatus) MakeRedomod() { } else { log.Log(WARN, "MakeRedomod() failed", path) } + return worked } func (rs *RepoStatus) ReadOnly() bool {