From 9d76bac4effa3b47462430194fa3294ed130f1ff Mon Sep 17 00:00:00 2001 From: Ermal Kaleci Date: Thu, 28 Jul 2022 16:16:30 +0200 Subject: [PATCH] walk submodule path instead of dir name (#1282) * walk submodule path instead of dir name * use file path instead of relative path Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- pkg/container/file_collector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/container/file_collector.go b/pkg/container/file_collector.go index 8c8c62b..e97cada 100644 --- a/pkg/container/file_collector.go +++ b/pkg/container/file_collector.go @@ -143,7 +143,7 @@ func (fc *fileCollector) collectFiles(ctx context.Context, submodulePath []strin } } if err == nil && entry.Mode == filemode.Submodule { - err = fc.Fs.Walk(fi.Name(), fc.collectFiles(ctx, split)) + err = fc.Fs.Walk(file, fc.collectFiles(ctx, split)) if err != nil { return err }