From 259a540211a95fda9be3f8e0cd8c253faf62c6e1 Mon Sep 17 00:00:00 2001 From: Caleb Allen Date: Fri, 13 Nov 2026 20:52:02 +0000 Subject: [PATCH] fix: use pointer receiver for FileResolver to enable reuse (#5483) Signed-off-by: Caleb Allen --- syft/source/filesource/file_source.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syft/source/filesource/file_source.go b/syft/source/filesource/file_source.go index b9e18d58b..94446443c 100644 --- a/syft/source/filesource/file_source.go +++ b/syft/source/filesource/file_source.go @@ -143,7 +143,7 @@ func (s fileSource) Describe() source.Description { } } -func (s fileSource) FileResolver(_ source.Scope) (file.Resolver, error) { +func (s *fileSource) FileResolver(_ source.Scope) (file.Resolver, error) { s.mutex.Lock() defer s.mutex.Unlock()