diff --git a/pkg/fs/fs.go b/pkg/fs/fs.go index 12602f7..0e78e42 100644 --- a/pkg/fs/fs.go +++ b/pkg/fs/fs.go @@ -103,7 +103,8 @@ func BuildPackageFromDir(input string, kdoc *k8spdx.Document, kpkg *k8spdx.Packa return err } - if info.IsDir() { + // we compute checksums below, so consider only regular files + if !info.Mode().IsRegular() { return nil }