mirror of
https://github.com/anchore/syft.git
synced 2026-11-03 07:56:36 +01:00
fix: update field plurality of 8.0.0 schema before release (#1820)
to keep things consistent across the schema we want Locations and URLs to be plural fields now that they are fields on the License struct --------- Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
This commit is contained in:
@@ -34,8 +34,8 @@ func (s *LicenseSet) addToExisting(license License) (id artifact.ID, merged bool
|
||||
return id, false, nil
|
||||
}
|
||||
|
||||
// we got the same id; we want to merge the URL and Location data
|
||||
// URL/Location are not considered when taking the Hash
|
||||
// we got the same id; we want to merge the URLs and Location data
|
||||
// URLs/Location are not considered when taking the Hash
|
||||
m, err := v.Merge(license)
|
||||
if err != nil {
|
||||
return id, false, fmt.Errorf("could not merge license into map: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user