Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Survive indexing dead symlinks #2645

Merged
merged 2 commits into from
Feb 14, 2024
Merged

Survive indexing dead symlinks #2645

merged 2 commits into from
Feb 14, 2024

Conversation

wagoodman
Copy link
Contributor

Related to #2627 , we want to be able to survive the indexing process even when we are indexing a new branch in the directory tree that happens to be a symlink pointing to a non existent file. Ultimately this will be recorded as a known-unknown, but for now we at least want to survive when this occurs and allow for the SBOM to be created.

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
@wagoodman wagoodman added the bug Something isn't working label Feb 14, 2024
@wagoodman wagoodman enabled auto-merge (squash) February 14, 2024 20:57
@wagoodman wagoodman requested a review from a team February 14, 2024 21:00
@wagoodman wagoodman merged commit 65cadda into main Feb 14, 2024
11 checks passed
@wagoodman wagoodman deleted the survive-bad-symlink branch February 14, 2024 21:06
@mathrock
Copy link

Relatedly, symlink loops are also still fatal. FWIW, anchore/stereoscope#206 still fails in the latest syft v0.105.0.

GijsCalis pushed a commit to GijsCalis/syft that referenced this pull request Feb 19, 2024
* survive indexing branches that start with a bad symlink

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* add log statement

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

---------

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants