Skip to content

Commit

Permalink
fix: consider only regular files to checksum (#65)
Browse files Browse the repository at this point in the history
Signed-off-by: Ramkumar Chinchani <[email protected]>
  • Loading branch information
rchincha authored Feb 26, 2024
1 parent 6fc173d commit 9db7ed8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/fs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 9db7ed8

Please sign in to comment.