Skip to content

Commit

Permalink
ad
Browse files Browse the repository at this point in the history
  • Loading branch information
rchincha committed Apr 15, 2024
1 parent 5b8e104 commit 13f890e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/fs/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ func checkBOM(input, pathEntry string) error {
return err
}

if file.Name != pathEntry && file.Name != symlink {
if file.FileName != pathEntry && file.FileName != symlink {
continue
}

file.Entity.Opts = &spdx.ObjectOptions{}

if err := file.ReadSourceFile(file.Name); err != nil {
log.Error().Err(err).Str("path", file.Name).Msg("doesn't match entry in SBOM document")
if err := file.ReadSourceFile(file.FileName); err != nil {
log.Error().Err(err).Str("path", file.FileName).Msg("doesn't match entry in SBOM document")

return err
}
Expand Down

0 comments on commit 13f890e

Please sign in to comment.