this may work to resume a release
This commit is contained in:
parent
1a90d070bb
commit
90ae6d0917
3
Makefile
3
Makefile
|
@ -12,6 +12,9 @@ goimports:
|
||||||
# // to globally reset paths:
|
# // to globally reset paths:
|
||||||
# // gofmt -w -r "go.wit.com/gui -> go.wit.com/gui/gui" .
|
# // gofmt -w -r "go.wit.com/gui -> go.wit.com/gui/gui" .
|
||||||
|
|
||||||
|
vet:
|
||||||
|
GO111MODULE=off go vet
|
||||||
|
|
||||||
build:
|
build:
|
||||||
echo "build it!"
|
echo "build it!"
|
||||||
GO111MODULE=off go build -v -x -ldflags " \
|
GO111MODULE=off go build -v -x -ldflags " \
|
||||||
|
|
|
@ -149,6 +149,15 @@ func globalDisplayOptions(box *gui.Node) {
|
||||||
me.Enable()
|
me.Enable()
|
||||||
})
|
})
|
||||||
grid.NewButton("increment minor version", func() {
|
grid.NewButton("increment minor version", func() {
|
||||||
|
// this is messy still. if the release process fails, it needs to continue
|
||||||
|
// for now, use the "go.wit.com/log" release minor number as the official
|
||||||
|
// release. If it hasn't been updated yet, then start there
|
||||||
|
logrepo := me.repos.View.FindRepo("go.wit.com/log")
|
||||||
|
if logrepo == nil {
|
||||||
|
log.Info("couldn't find go.wit.com/log")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
releasev := logrepo.Status.LastTag()
|
||||||
for _, repo := range me.repos.View.AllRepos() {
|
for _, repo := range me.repos.View.AllRepos() {
|
||||||
if whitelist(repo.GoPath()) {
|
if whitelist(repo.GoPath()) {
|
||||||
continue
|
continue
|
||||||
|
@ -168,6 +177,11 @@ func globalDisplayOptions(box *gui.Node) {
|
||||||
repo.Status.IncrementRevisionVersion("trying minor")
|
repo.Status.IncrementRevisionVersion("trying minor")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if releasev == repo.Status.LastTag() {
|
||||||
|
log.Info("skipping already released repo", repo.Status.GoPath())
|
||||||
|
repo.Status.SetTargetVersion(releasev)
|
||||||
|
continue
|
||||||
|
}
|
||||||
// repo.Status.SetVersion("0", "22", "0", "trying increment minor")
|
// repo.Status.SetVersion("0", "22", "0", "trying increment minor")
|
||||||
repo.Status.IncrementMinorVersion("trying minor")
|
repo.Status.IncrementMinorVersion("trying minor")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue