summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-18 20:24:28 -0600
committerJeff Carr <[email protected]>2024-12-18 20:24:28 -0600
commitc9639a8db225874dfe1f0085aaba1494c4cedc78 (patch)
tree917e05988729f314112b326850f73fae4d17b159
parent35fdbe31508f9afdce044fe9c918b5b22756fa8f (diff)
-rw-r--r--prepareRelease.go17
1 files changed, 14 insertions, 3 deletions
diff --git a/prepareRelease.go b/prepareRelease.go
index 796a4ca..e145a13 100644
--- a/prepareRelease.go
+++ b/prepareRelease.go
@@ -1,8 +1,6 @@
package main
import (
- "os"
-
"go.wit.com/lib/protobuf/forgepb"
"go.wit.com/lib/protobuf/gitpb"
"go.wit.com/log"
@@ -45,7 +43,7 @@ func forceReleaseVersion(repo *gitpb.Repo) {
if !runGoClean(repo, "--restore") {
log.Info("go-mod-clean probably failed here. that's ok", repo.GetGoPath())
- os.Exit(-1)
+ // os.Exit(-1)
}
}
@@ -62,6 +60,19 @@ func rePrepareRelease() {
// set the target version to the current master version
lastTag := check.GetLastTag()
check.SetTargetVersion(lastTag)
+ if me.forge.Config.IsReadOnly(check.GetGoPath()) {
+ // can't release readonly repos
+ continue
+ }
+ if me.forge.Config.IsPrivate(check.GetGoPath()) {
+ // can't release readonly repos
+ continue
+ }
+
+ if !runGoClean(check, "--restore") {
+ log.Info("go-mod-clean probably failed here. that's ok", check.GetGoPath())
+ // os.Exit(-1)
+ }
}
all = me.forge.Repos.SortByFullPath()