summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.go b/config.go
index 3970f8c..a1fc49d 100644
--- a/config.go
+++ b/config.go
@@ -8,8 +8,10 @@ import (
"fmt"
"os"
"path/filepath"
+ "time"
"go.wit.com/log"
+ timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
func (f *Forge) ConfigSave() error {
@@ -28,6 +30,11 @@ func (f *Forge) ConfigSave() error {
}
}
if f.Repos != nil {
+ if f.HasFullScan() {
+ f.Repos.HasFullScan = true
+ t := time.Now()
+ f.Repos.FullScan = timestamppb.New(t)
+ }
if e := f.Repos.ConfigSave(); e != nil {
log.Info("forge.Repos.ConfigSave() error", e)
err = e