summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-02 05:13:17 -0600
committerJeff Carr <[email protected]>2024-12-02 05:13:17 -0600
commitcfb4fb61bfab6e6816c0080b47d6a6d4b935cea2 (patch)
tree91be3748e0fb1c09cd0fa169d78ef65fc657fcb8 /http.go
parent02f7ee387ff083d5c39b3d99ec9defe3e66e3700 (diff)
more rewriting of old code
Diffstat (limited to 'http.go')
-rw-r--r--http.go19
1 files changed, 14 insertions, 5 deletions
diff --git a/http.go b/http.go
index e4bcccd..924ec1d 100644
--- a/http.go
+++ b/http.go
@@ -155,6 +155,19 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
} else {
repo.Status.Whitelist = true
}
+ case "/testNext":
+ // re-scans the go.sum file. DOES NOT MODIFY ANYTHING
+ check := me.forge.Repos.FindByGoPath(me.current.GoPath())
+ if check == nil {
+ log.Info("boo, you didn't git clone", me.current.GoPath())
+ return
+ }
+ if me.forge.FinalGoDepsCheck(check) {
+ log.Info("finalGoDepsCheck(check) worked!")
+ } else {
+ log.Info("finalGoDepsCheck(check) failed. boo.")
+ }
+ return
case "/showNext":
log.Info("gui repo: " + me.release.repo.String())
log.Info("gui name: " + me.release.version.String())
@@ -166,11 +179,6 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
return
}
- if checkValidGoSum(me.current) {
- log.Info("checkValidGoSum() == true")
- } else {
- log.Info("checkValidGoSum() == false SHOULD NOT RELEASE THIS")
- }
if me.current.Status.IsReleased() {
log.Info("IsReleased() == true SHOULD NOT RELEASE THIS")
} else {
@@ -212,6 +220,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
log.Info("Whitelist == false")
}
log.Info("")
+ fixGodeps(me.current)
log.Info(repolist.ReportHeader())
log.Info(me.current.StandardHeader())