mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 23:16:30 +01:00
add VirtualPath to source.Location
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
@@ -81,6 +81,12 @@ func TestCatalogFromJSON(t *testing.T) {
|
||||
e.Metadata = metadata
|
||||
}
|
||||
|
||||
// ignore the virtual path on the location for now
|
||||
for l := range a.Locations {
|
||||
a.Locations[l].VirtualPath = ""
|
||||
e.Locations[l].VirtualPath = ""
|
||||
}
|
||||
|
||||
for _, d := range deep.Equal(a, e) {
|
||||
// ignore errors for empty collections vs nil for select fields
|
||||
// TODO: this is brittle, but not dangerously so. We should still find a better way to do this.
|
||||
|
||||
Reference in New Issue
Block a user