diff --git a/pkg/ingestor/parser/common/license.go b/pkg/ingestor/parser/common/license.go index 78e91e6fa0..3185dca720 100644 --- a/pkg/ingestor/parser/common/license.go +++ b/pkg/ingestor/parser/common/license.go @@ -83,9 +83,8 @@ func ParseLicenses(exp string, lv *string, inLineMap map[string]string) []model. var license *model.LicenseInputSpec if inline, ok := inLineMap[p]; ok { license = &model.LicenseInputSpec{ - Name: p, - Inline: &inline, - ListVersion: lv, + Name: p, + Inline: &inline, } } else { if !strings.HasPrefix(p, "LicenseRef") { diff --git a/pkg/ingestor/parser/spdx/parse_spdx_test.go b/pkg/ingestor/parser/spdx/parse_spdx_test.go index 2ebf02c6eb..79edab7ef8 100644 --- a/pkg/ingestor/parser/spdx/parse_spdx_test.go +++ b/pkg/ingestor/parser/spdx/parse_spdx_test.go @@ -1016,9 +1016,8 @@ func Test_spdxParser(t *testing.T) { }, Declared: []generated.LicenseInputSpec{ { - Name: "LicenseRef-2ba8ded3", - Inline: ptrfrom.String("Redistribution and use of the this code or any derivative works are permitted provided that the following conditions are met..."), - ListVersion: ptrfrom.String("1.2.3"), + Name: "LicenseRef-2ba8ded3", + Inline: ptrfrom.String("Redistribution and use of the this code or any derivative works are permitted provided that the following conditions are met..."), }, }, CertifyLegal: &generated.CertifyLegalInputSpec{