mirror of
https://github.com/anchore/syft.git
synced 2026-11-03 16:06:36 +01:00
chore(deps): update Go version (#4773)
Signed-off-by: anchore-oss-update-bot <anchore-oss-update-bot@users.noreply.github.com> Co-authored-by: anchore-oss-update-bot <anchore-oss-update-bot@users.noreply.github.com>
This commit is contained in:
co-authored by
anchore-oss-update-bot
parent
26e87c7cd3
commit
5b58ec96b7
@@ -202,7 +202,7 @@ func setPackageName(p *pkg.Package, c *cyclonedx.Component) {
|
||||
}
|
||||
|
||||
func decodeLocations(vals map[string]string) file.LocationSet {
|
||||
v := Decode(reflect.TypeOf([]file.Location{}), vals, "syft:location", CycloneDXFields)
|
||||
v := Decode(reflect.TypeFor[[]file.Location](), vals, "syft:location", CycloneDXFields)
|
||||
out, ok := v.([]file.Location)
|
||||
if !ok {
|
||||
out = nil
|
||||
@@ -210,7 +210,7 @@ func decodeLocations(vals map[string]string) file.LocationSet {
|
||||
return file.NewLocationSet(out...)
|
||||
}
|
||||
|
||||
func decodePackageMetadata(vals map[string]string, c *cyclonedx.Component, typeName string) interface{} {
|
||||
func decodePackageMetadata(vals map[string]string, c *cyclonedx.Component, typeName string) any {
|
||||
if typeName != "" && c.Properties != nil {
|
||||
metadataType := packagemetadata.ReflectTypeFromJSONName(typeName)
|
||||
if metadataType == nil {
|
||||
|
||||
Reference in New Issue
Block a user