mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 23:46:35 +01:00
fix: do not use AccessPath / Location.Path() except in special cases
Signed-off-by: Keith Zantow <kzantow@gmail.com>
This commit is contained in:
@@ -142,7 +142,7 @@ func (r MockResolver) FileContentsByLocation(location Location) (io.ReadCloser,
|
||||
}
|
||||
}
|
||||
|
||||
return nil, fmt.Errorf("no file for location: %v", location)
|
||||
return nil, fmt.Errorf("no file for location: %q", location.FullNestedPath())
|
||||
}
|
||||
|
||||
// FilesByPath returns all Locations that match the given paths.
|
||||
|
||||
Reference in New Issue
Block a user