summaryrefslogtreecommitdiff
path: root/age.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-17 06:37:14 -0600
committerJeff Carr <[email protected]>2024-12-17 06:37:14 -0600
commit233f7bca767aab9df55adea409e9820050631586 (patch)
tree1ce61760e8b31077b9accc9b1da978d935a132d3 /age.go
parent4bc95ad2684cb42159229b8198aa8a2377f80aa1 (diff)
lots of changes to isolate exec 'git'
Diffstat (limited to 'age.go')
-rw-r--r--age.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/age.go b/age.go
index d70c863..1249a6e 100644
--- a/age.go
+++ b/age.go
@@ -28,7 +28,7 @@ func (repo *Repo) GoSumAge() (time.Duration, error) {
return time.Since(mtime), nil
}
now := time.Now()
- return time.Since(now), errors.New(repo.GoPath + " go.mod missing")
+ return time.Since(now), errors.New(repo.GetGoPath() + " go.mod missing")
}
func (repo *Repo) GitChanged() bool {
@@ -39,7 +39,7 @@ func (repo *Repo) GitChanged() bool {
log.Info("gitpb:", fullfile, "changed")
return true
}
- newtime := repo.LastPull.AsTime()
+ newtime := repo.Times.LastPull.AsTime()
if lasttime == newtime {
return false
@@ -52,7 +52,7 @@ func (repo *Repo) GitPullAge() time.Duration {
lastpull, err := repo.LastGitPull()
if err == nil {
// if error, something is wrong, assume true
- ltime := repo.LastPull.AsTime()
+ ltime := repo.Times.LastPull.AsTime()
return time.Since(ltime)
}