Skip to content

Commit

Permalink
Fix invalid type matching in the regosversion extractor, causing pu…
Browse files Browse the repository at this point in the history
…rl to not be generated.

PiperOrigin-RevId: 700283835
  • Loading branch information
tooryx authored and copybara-github committed Nov 26, 2024
1 parent 0374099 commit 7607558
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ func (e Extractor) ToPURL(i *extractor.Inventory) *purl.PackageURL {
var qualifiers purl.Qualifiers

switch i.Metadata.(type) {
case *metadata.OSVersion:
case metadata.OSVersion:
qualifiers = purl.QualifiersFromMap(map[string]string{
purl.BuildNumber: i.Metadata.(*metadata.OSVersion).FullVersion,
purl.BuildNumber: i.Metadata.(metadata.OSVersion).FullVersion,
})
default:
return nil
Expand Down

0 comments on commit 7607558

Please sign in to comment.