From ebda2ea222ed9f1d348d5d3e0cffb9c9f9c0acec Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 8 Jan 2025 02:38:50 -0600 Subject: keep working the problem --- reload.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'reload.go') diff --git a/reload.go b/reload.go index 0f15698..5329561 100644 --- a/reload.go +++ b/reload.go @@ -2,8 +2,10 @@ package gitpb import ( "strings" + "time" "go.wit.com/log" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) // TODO: fix and clean this up. this is a work in progress @@ -19,11 +21,15 @@ func (repo *Repo) Reload() error { repo.ParseGoSum() // also sets GoPrimitive repo.reloadVersions() repo.setRepoType() + + // this is probably a good place & time to store these + repo.reloadMtimes() + repo.CheckDirty() repo.setRepoState() - // everything has been checked, now save the mtime's - repo.updateMtimes() + // LastUpdate should always be the newest time + repo.Times.LastUpdate = timestamppb.New(time.Now()) return nil } -- cgit v1.2.3