maybe don't redo those go.* files anymore here
This commit is contained in:
parent
47085c837e
commit
5f196513df
|
@ -101,7 +101,7 @@ func runGoClean(check *gitpb.Repo) bool {
|
||||||
// check if the package dependancies changed, if so, re-publish
|
// check if the package dependancies changed, if so, re-publish
|
||||||
check.GoDeps = nil
|
check.GoDeps = nil
|
||||||
|
|
||||||
cmd := []string{"go-mod-clean", "--strict"}
|
cmd := []string{"go-mod-clean", "--strict", "--force"}
|
||||||
log.Info("Running", cmd, "in", check.GoPath)
|
log.Info("Running", cmd, "in", check.GoPath)
|
||||||
result := check.RunRealtime(cmd)
|
result := check.RunRealtime(cmd)
|
||||||
if result.Error != nil {
|
if result.Error != nil {
|
||||||
|
|
|
@ -29,33 +29,6 @@ func makePrepareRelease() {
|
||||||
check.SetTargetVersion(curver)
|
check.SetTargetVersion(curver)
|
||||||
}
|
}
|
||||||
|
|
||||||
// run go-mod-clean on everything not readonly
|
|
||||||
all = me.forge.Repos.SortByGoPath()
|
|
||||||
for all.Scan() {
|
|
||||||
check := all.Next()
|
|
||||||
|
|
||||||
if me.forge.Config.IsReadOnly(check.GoPath) {
|
|
||||||
// can't release readonly repos
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
if ok, err := check.IsPrimitive(); !ok {
|
|
||||||
log.Info("something wrong with", check.GoPath, err)
|
|
||||||
// no go.sum file for these
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
if check.Exists("go.sum") {
|
|
||||||
// probably already ran
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
// run go-mod-clean on every repo to start
|
|
||||||
if !runGoClean(check) {
|
|
||||||
log.Info("go-mod-clean FAILED. THIS IS BAD.", check.GoPath)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
all = me.forge.Repos.SortByGoPath()
|
all = me.forge.Repos.SortByGoPath()
|
||||||
for all.Scan() {
|
for all.Scan() {
|
||||||
check := all.Next()
|
check := all.Next()
|
||||||
|
@ -95,7 +68,7 @@ func makePrepareRelease() {
|
||||||
check.Run([]string{"git", "notes", "remove"})
|
check.Run([]string{"git", "notes", "remove"})
|
||||||
}
|
}
|
||||||
if !runGoClean(check) {
|
if !runGoClean(check) {
|
||||||
log.Info("go-mod-clean FAILED. THIS IS BAD.", check.GoPath)
|
log.Info("go-mod-clean probably failed here. that's ok", check.GoPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue