summaryrefslogtreecommitdiff
path: root/prepareRelease.go
diff options
context:
space:
mode:
Diffstat (limited to 'prepareRelease.go')
-rw-r--r--prepareRelease.go39
1 files changed, 19 insertions, 20 deletions
diff --git a/prepareRelease.go b/prepareRelease.go
index fc6a06e..c8ac608 100644
--- a/prepareRelease.go
+++ b/prepareRelease.go
@@ -49,26 +49,25 @@ func makePrepareRelease() {
continue
}
- // if the repo is a go binary, try forcing new go.* files
- if check.RepoType() != "binary" {
- // master and lasttag match and it's not a binary. everything is fine
- continue
- }
- // check if the package dependancies changed, if so, re-publish
- if me.forge.FinalGoDepsCheckOk(check) {
- log.Printf("go.sum is perfect! %s\n", check.GetGoPath())
- continue
- }
- log.Printf("dependancy checks indicate a new release is needed for %s\n", check.GetGoPath())
- // if v1.2.3 change to v.1.2.4
- check.IncrementTargetRevision()
- // run go-mod-clean in each repo that needs to be updated
- if master == lastTag {
- // 'git notes' has something in it. clear it out
- check.Run([]string{"git", "notes", "remove"})
- }
- if !runGoClean(check) {
- log.Info("go-mod-clean probably failed here. that's ok", check.GoPath)
+ // if the repo is a go binary or plugin for a new release for
+ // any library version change
+ if check.RepoType() == "binary" || check.RepoType() == "plugin" {
+ // check if the package dependancies changed, if so, re-publish
+ if me.forge.FinalGoDepsCheckOk(check) {
+ log.Printf("go.sum is perfect! %s\n", check.GetGoPath())
+ continue
+ }
+ log.Printf("dependancy checks indicate a new release is needed for %s\n", check.GetGoPath())
+ // if v1.2.3 change to v.1.2.4
+ check.IncrementTargetRevision()
+ // run go-mod-clean in each repo that needs to be updated
+ if master == lastTag {
+ // 'git notes' has something in it. clear it out
+ check.Run([]string{"git", "notes", "remove"})
+ }
+ if !runGoClean(check) {
+ log.Info("go-mod-clean probably failed here. that's ok", check.GoPath)
+ }
}
}