summaryrefslogtreecommitdiff
path: root/prepareRelease.go
diff options
context:
space:
mode:
Diffstat (limited to 'prepareRelease.go')
-rw-r--r--prepareRelease.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/prepareRelease.go b/prepareRelease.go
index 060308d..d3cf173 100644
--- a/prepareRelease.go
+++ b/prepareRelease.go
@@ -21,7 +21,7 @@ func makePrepareRelease() {
// reset all the target versions back to the current version
// incase they were saved in the repos.pb file
- all := me.forge.Repos.SortByGoPath()
+ all := me.forge.Repos.SortByFullPath()
for all.Scan() {
check := all.Next()
@@ -30,11 +30,11 @@ func makePrepareRelease() {
check.SetTargetVersion(curver)
}
- all = me.forge.Repos.SortByGoPath()
+ all = me.forge.Repos.SortByFullPath()
for all.Scan() {
check := all.Next()
- if me.forge.Config.IsReadOnly(check.GoPath) {
+ if me.forge.Config.IsReadOnly(check.GetGoPath()) {
// can't release readonly repos
continue
}
@@ -46,7 +46,7 @@ func makePrepareRelease() {
continue
}
- if argv.Protobuf && check.RepoType() == "protobuf" {
+ if argv.Protobuf && check.GetRepoType() == "protobuf" {
// if --protobuf, this will force upgrade each one
forceReleaseVersion(check)
continue
@@ -54,7 +54,7 @@ func makePrepareRelease() {
// 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" {
+ if check.GetRepoType() == "binary" || check.GetRepoType() == "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())
@@ -91,6 +91,6 @@ func forceReleaseVersion(repo *gitpb.Repo) {
repo.Run([]string{"git", "notes", "remove"})
if !runGoClean(repo) {
- log.Info("go-mod-clean probably failed here. that's ok", repo.GoPath)
+ log.Info("go-mod-clean probably failed here. that's ok", repo.GetGoPath())
}
}