From 490a2aca0880eb317077a8bf477676a99b71b6f9 Mon Sep 17 00:00:00 2001 From: Robin <132836850+robinyoublind2@users.noreply.github.com> Date: Tue, 9 May 2023 20:04:20 -0500 Subject: [PATCH] Log warning when library overlaps generated folder in scan (#3725) --- internal/manager/task_scan.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/manager/task_scan.go b/internal/manager/task_scan.go index 43d264c22..02ebfbc30 100644 --- a/internal/manager/task_scan.go +++ b/internal/manager/task_scan.go @@ -246,6 +246,7 @@ func newScanFilter(c *config.Instance, minModTime time.Time) *scanFilter { func (f *scanFilter) Accept(ctx context.Context, path string, info fs.FileInfo) bool { if fsutil.IsPathInDir(f.generatedPath, path) { + logger.Warnf("Skipping %q as it overlaps with the generated folder", path) return false }