diff options
Diffstat (limited to 'age.go')
| -rw-r--r-- | age.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) } |
