summaryrefslogtreecommitdiff
path: root/prepareRelease.go
diff options
context:
space:
mode:
Diffstat (limited to 'prepareRelease.go')
-rw-r--r--prepareRelease.go40
1 files changed, 0 insertions, 40 deletions
diff --git a/prepareRelease.go b/prepareRelease.go
index 65ac1d8..704e10d 100644
--- a/prepareRelease.go
+++ b/prepareRelease.go
@@ -247,22 +247,6 @@ func checkPublishedGodeps(repo *gitpb.Repo) error {
if err := me.forge.TestGoDepsCheckOk(godepsOld, argv.Verbose); err != nil {
return err
}
- /*
- all := godepsOld.All()
- for all.Scan() {
- dep := all.Next()
- // log.Info(repo.GetGoPath(), dep.GoPath, dep.Version)
-
- // check if the package in question is waiting for another package to publish
- found := me.forge.FindByGoPath(dep.GoPath)
- if found == nil {
- return fmt.Errorf("%s has godep %s which can not be found", repo.GetGoPath(), dep.GoPath)
- }
- if found.GetLastTag() != dep.Version {
- return fmt.Errorf("%s with godep %s version mismatch %s vs %s", repo.GetGoPath(), dep.GoPath, found.GetLastTag(), dep.Version)
- }
- }
- */
}
godepsNew, err := repo.GoSumFromRepo()
if err != nil {
@@ -281,27 +265,3 @@ func checkPublishedGodeps(repo *gitpb.Repo) error {
}
return nil
}
-
-/*
-func checkGodeps(repo *gitpb.Repo, godeps *gitpb.GoDeps) error {
- if godeps == nil {
- }
- return nil
- all := godeps.All()
- for all.Scan() {
- dep := all.Next()
- // log.Info(repo.GetGoPath(), dep.GoPath, dep.Version)
-
- // check if the package in question is waiting for another package to publish
- found := me.forge.FindByGoPath(dep.GoPath)
- if found == nil {
- return fmt.Errorf("%s has godep %s which can not be found", repo.GetGoPath(), dep.GoPath)
- }
- if found.GetLastTag() != dep.Version {
- return fmt.Errorf("%s with godep %s version mismatch %s vs %s", repo.GetGoPath(), dep.GoPath, found.GetLastTag(), dep.Version)
- }
- log.Printf("%s with godep %s version match %s vs %s\n", repo.GetGoPath(), dep.GoPath, found.GetLastTag(), dep.Version)
- }
- return nil
-}
-*/