Skip to content

Commit

Permalink
SPDX file has duplicate sha256 tag in versionInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
coheigea committed Nov 8, 2023
1 parent 9eac737 commit 7bce2a6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions syft/source/file_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ func deriveIDFromFile(cfg FileConfig) (artifact.ID, string) {
info += fmt.Sprintf(":%s@%s", cfg.Alias.Name, cfg.Alias.Version)
}

if d != "" {
d = fmt.Sprintf("sha256:%s", d)
}

return artifactIDFromDigest(digest.SHA256.FromString(info).String()), d
}

Expand Down

0 comments on commit 7bce2a6

Please sign in to comment.