this code probably isn't needed, but it does work

This commit is contained in:
Jeff Carr 2025-01-08 02:40:06 -06:00
parent 06ad922780
commit 8e2a557b25
1 changed files with 11 additions and 0 deletions

11
main.go
View File

@ -113,6 +113,17 @@ func main() {
if argv.Show != "" { if argv.Show != "" {
repo := me.forge.FindByGoPath(argv.Show) repo := me.forge.FindByGoPath(argv.Show)
me.forge.HumanPrintRepo(repo) me.forge.HumanPrintRepo(repo)
// newt := repo.Times.LastUpdate.AsTime()
// oldt := repo.Times.MtimeHead.AsTime()
if repo.Times.LastUpdate == nil {
log.Info("SHOULD RUN Reload() here")
repo.Reload()
me.forge.HumanPrintRepo(repo)
} else {
if repo.Times.LastUpdate.Seconds < repo.Times.MtimeHead.Seconds {
log.Info("SHOULD RUN Reload() here")
}
}
okExit("") okExit("")
} }