diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 37 |
1 files changed, 0 insertions, 37 deletions
@@ -4,7 +4,6 @@ import ( "embed" "os" "path/filepath" - "strings" "go.wit.com/gui" "go.wit.com/lib/gui/shell" @@ -149,39 +148,3 @@ func setAllBranchesToMaster() bool { } return worked } - -func setTargetVersion() { - // go through and set the target versions for each repo - // todo: add sanity checking in repolist to verify these and/or autocompute them - // for now, just don't be stupid when you set your ENV vars - // widget I versioned early before I knew what the hell this would mean and can - // not be down versioned because that's not how GO versioning works. Once you - // set the version for a path, it's set in stone forever. (smart system!) - // we could rename go.wit.com/widget to go.wit.com/newwidget and restart the versioning - // system, but that's rediculous and this servers to always remind me to never make this mistake again - var count int - for i, repo := range me.repos.View.AllRepos() { - if repo == nil { - log.Info("initial scan repo = nil", i) - continue - } - - if repo.Status == nil { - log.Info("repo.status == nil", repo.Name()) - continue - } - - if repo.GoPath() == "go.wit.com/widget" { - repo.Status.SetTargetVersion("v" + widgetVersion) - } else { - repo.Status.SetTargetVersion("v" + releaseVersion) - } - if strings.HasPrefix(repo.GoPath(), "go.wit.com/dev/") { - lasttag := repo.Status.GetLastTagVersion() - repo.Status.SetTargetVersion(lasttag) - } - // repo.NewScan() - count += 1 - } - log.Info("target versions set for", count, "repos") -} |
