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: gracefully handle broken symlinks when using --all-projects #1326

Closed

Conversation

clintonherget
Copy link
Contributor

@clintonherget clintonherget commented Aug 12, 2020

  • 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?

Closing and cherry-picked here: #1329

@clintonherget clintonherget requested review from a team as code owners August 12, 2020 20:12
@CLAassistant
Copy link

CLAassistant commented Aug 12, 2020

CLA assistant check
All committers have signed the CLA.

@ghost ghost requested review from dkontorovskyy and ekbsnyk August 12, 2020 20:13
@clintonherget clintonherget changed the title fix/handle broken symlinks fix: gracefully handle broken symlinks when using --all-projects Aug 12, 2020
@lili2311 lili2311 closed this Aug 13, 2020
@lili2311 lili2311 reopened this Aug 13, 2020
@lili2311
Copy link
Contributor

Cherry-picked here #1329

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.

3 participants