From 933cfadaf0b5fc34d6e55ca0230786017f93c45d Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Wed, 13 Nov 2024 13:55:46 -0500 Subject: [PATCH] internal/trust/truststore: add `.` to `.yaml` files watched for Signed-off-by: Simon Deziel --- internal/trust/truststore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/trust/truststore.go b/internal/trust/truststore.go index 68385bec..156cce37 100644 --- a/internal/trust/truststore.go +++ b/internal/trust/truststore.go @@ -45,7 +45,7 @@ func Init(watcher *sys.Watcher, onUpdate func(oldRemotes, newRemotes Remotes) er } // Watch on the truststore directory for yaml updates. - watcher.Watch(dir, "yaml", func(path string, event fsnotify.Op) error { + watcher.Watch(dir, ".yaml", func(path string, event fsnotify.Op) error { return ts.refresh(path) })