Skip to content

Commit

Permalink
Merge pull request #82 from interlynk-io/75-invalid-verification_code
Browse files Browse the repository at this point in the history
Clears package verification code, if value is empty and reset files a…
  • Loading branch information
riteshnoronha authored Jul 10, 2024
2 parents 60d8d73 + ab60e42 commit 0266423
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/assemble/spdx/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ func (m *merge) hierarchicalMerge() error {
cPkg.PackageVerificationCode = nil
}

if cPkg.PackageVerificationCode != nil && cPkg.PackageVerificationCode.Value == "" {
cPkg.PackageVerificationCode = nil
cPkg.FilesAnalyzed = false
}

for _, f := range cPkg.Files {
if f.FileSPDXIdentifier == "" {
continue
Expand Down

0 comments on commit 0266423

Please sign in to comment.