mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 06:56:40 +01:00
Add accessPath on Location objects to syft-json output (#2287)
* add accessPath on Location objects to syft-json output Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * generate json schema v12.0.1 Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
@@ -117,7 +117,7 @@ func TestEncodeFullJSONDocument(t *testing.T) {
|
||||
Artifacts: sbom.Artifacts{
|
||||
Packages: catalog,
|
||||
FileMetadata: map[file.Coordinates]file.Metadata{
|
||||
file.NewLocation("/a/place").Coordinates: {
|
||||
file.NewVirtualLocation("/a/place", "/a/symlink/to/place").Coordinates: {
|
||||
FileInfo: stereoFile.ManualInfo{
|
||||
NameValue: "/a/place",
|
||||
ModeValue: 0775,
|
||||
|
||||
Reference in New Issue
Block a user