mirror of
https://github.com/anchore/syft.git
synced 2026-02-14 03:26:41 +01:00
fix: typo in os.Getwd error message (#1433)
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
parent
8d36b21237
commit
e3d6ffd30e
@ -50,7 +50,7 @@ type directoryResolver struct {
|
|||||||
func newDirectoryResolver(root string, pathFilters ...pathFilterFn) (*directoryResolver, error) {
|
func newDirectoryResolver(root string, pathFilters ...pathFilterFn) (*directoryResolver, error) {
|
||||||
currentWD, err := os.Getwd()
|
currentWD, err := os.Getwd()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("could not gret CWD: %w", err)
|
return nil, fmt.Errorf("could not get CWD: %w", err)
|
||||||
}
|
}
|
||||||
// we have to account for the root being accessed through a symlink path and always resolve the real path. Otherwise
|
// we have to account for the root being accessed through a symlink path and always resolve the real path. Otherwise
|
||||||
// we will not be able to normalize given paths that fall under the resolver
|
// we will not be able to normalize given paths that fall under the resolver
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user