mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 23:46:35 +01:00
fix: keep RealPath as top-level, use FullPath and utility functions FullNestedPath, LocalPath, Path
Signed-off-by: Keith Zantow <kzantow@gmail.com>
This commit is contained in:
@@ -175,10 +175,10 @@ func coordinatesForSelection(ctx context.Context, selection file.Selection, acce
|
||||
}
|
||||
})
|
||||
|
||||
frame := archive.TraversalFromContext(ctx).ContentsArchivePath()
|
||||
frame := archive.TraversalFromContext(ctx).FullTraversalArchivePath()
|
||||
var coords []file.Coordinates
|
||||
for _, c := range coordinates.ToSlice() {
|
||||
if c.ArchivePath == frame {
|
||||
if archive.ContainerPath(c) == frame {
|
||||
coords = append(coords, c)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user