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 }