summaryrefslogtreecommitdiff
path: root/humanShowRepo.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-16 04:32:04 -0500
committerJeff Carr <[email protected]>2025-10-16 04:32:04 -0500
commitfa7671233aba6b4e17505c8f8b39af5fa9a755d8 (patch)
treed0d746096542079482719f2eabf46e31660cd48f /humanShowRepo.go
parentc5ba7ffcb12931b0507365142e73dd79cedaf901 (diff)
old cruft replaced by potential future cruftv0.0.182
Diffstat (limited to 'humanShowRepo.go')
-rw-r--r--humanShowRepo.go90
1 files changed, 0 insertions, 90 deletions
diff --git a/humanShowRepo.go b/humanShowRepo.go
deleted file mode 100644
index cbc433d..0000000
--- a/humanShowRepo.go
+++ /dev/null
@@ -1,90 +0,0 @@
-// Copyright 2025 WIT.COM Inc Licensed GPL 3.0
-
-package forgepb
-
-/*
-func (f *Forge) HumanPrintRepo(check *gitpb.Repo) {
- if check == nil {
- log.Info("forge: you sent me nil")
- return
- }
-
- if check.GetTargetVersion() == "" {
- log.Info("TargetVersion == blank")
- }
- if check.GetTargetVersion() == check.GetCurrentVersion() {
- log.Info("IsReleased() == true. do not release this a second time")
- } else {
- log.Info("IsReleased() == false")
- }
- if check.CheckDirty() {
- log.Info("CheckDirty() == true. do not release dirty repos")
- } else {
- log.Info("CheckDirty() == false")
- }
- if check.GetGoPrimitive() {
- log.Info("IsPrimitive() == true")
- } else {
- log.Info("IsPrimitive() == false")
- }
- if f.Config.IsPrivate(check.GetGoPath()) {
- log.Info("IsPrivate() == true")
- } else {
- log.Info("IsPrivate() == false")
- }
- if ok, compiled, err := check.ScanProtobuf(); ok {
- log.Info(log.Sprint("IsProtobuf() == true compiled protobuf files = ", compiled))
- if err != nil {
- log.Info("IsProtobuf() ERROR = ", err)
- }
- for _, s := range compiled {
- log.Info("\tcompiled file found:", s)
- }
- } else {
- log.Info("IsProtobuf() == false")
- if err != nil {
- log.Info("IsProtobuf() ERROR = ", err)
- }
- }
- log.Info("git master name ==", check.GetMasterBranchName())
- log.Info("git devel name ==", check.GetDevelBranchName())
- log.Info("git user name ==", check.GetUserBranchName())
- log.Info("git current name ==", check.GetCurrentBranchName())
-
- // testNext(check)
- // f.PrintHumanTable(check)
-
- printTime("Last Pull", check.Times.LastPull.AsTime())
- printTime("Last Dirty", check.Times.LastDirty.AsTime())
- printTime("dir mtime", check.Times.MtimeDir.AsTime())
- printTime("HEAD mtime", check.Times.MtimeHead.AsTime())
- printTime("Index mtime", check.Times.MtimeIndex.AsTime())
- printTime("fetch", check.Times.MtimeFetch.AsTime())
- printTime("last go.sum", check.Times.LastGoDep.AsTime())
- printTime("last commit", check.Times.NewestCommit.AsTime())
-
- now := time.Now()
- dur := now.Sub(check.Times.LastUpdate.AsTime())
- log.Printf("Repo Last Reload: %s\n", shell.FormatDuration(dur))
-}
-
-func (f *Forge) testGoRepo(check *gitpb.Repo) {
- data, _ := os.ReadFile(filepath.Join(check.FullPath, "go.mod"))
- log.Info(string(data))
-
- if err := f.FinalGoDepsCheckOk(check, true); err == nil {
- log.Info("forge.FinalGoDepsCheck(check) worked!")
- } else {
- log.Info("forge.FinalGoDepsCheck(check) failed. boo.")
- }
-
-}
-
-func printTime(s string, t time.Time) {
- now := time.Now()
- dur := now.Sub(t)
- if dur < (time.Hour * 24) {
- log.Printf("%s mtime last changed %s\n", s, shell.FormatDuration(dur))
- }
-}
-*/