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

fix: handle broken symlinks (attempt 2) #1335

Closed

Conversation

clintonherget
Copy link
Contributor

  • Ready for review
  • Follows CONTRIBUTING rules
  • Reviewed by Snyk internal team

What does this PR do?

Fixes an edge case when using "snyk test --all-projects" in a project that contains a broken symlink. (Currently it fails catastrophically.)

Where should the reviewer start?

Small change to src/lib/find-files.ts

How should this be manually tested?

$ ln -s /path-that-does-not-exist broken-symlink
$ node dist/cli/index.js test --all-projects

Any background context you want to provide?

What are the relevant tickets?

Screenshots

Additional questions

…re in project tree when using --all-projects (update to fix failing find-files.test.ts)
@clintonherget clintonherget requested review from a team as code owners August 14, 2020 16:20
@ghost ghost requested review from dkontorovskyy and orsagie August 14, 2020 16:20
@clintonherget clintonherget mentioned this pull request Aug 14, 2020
3 tasks
@lili2311
Copy link
Contributor

@lili2311 lili2311 closed this Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants