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

Don't crash yarn source on malformed json #431

Merged
merged 6 commits into from
Jan 7, 2022
Merged

Conversation

jonabc
Copy link
Contributor

@jonabc jonabc commented Jan 7, 2022

closes #430

This is a minimal fix to resolve the crash. In the linked issue the problem came from a dependency shipping it's intentionally malformed test fixture, which is not required and fine to ignore. If there is an error when parsing a required package.json file with this change, a dependency will show up as not being found rather than the true error that package.json file couldn't be parsed. That can be handled at a later time though

cc @pfeffer

@jonabc
Copy link
Contributor Author

jonabc commented Jan 7, 2022

The licensed-ci GitHub Action has created a pull request containing license metadata updates based on the changes in this branch.

Please review the pull request for any additional changes required and merge when ready.

@jonabc jonabc merged commit 75d5df4 into master Jan 7, 2022
@jonabc jonabc deleted the yarn-handle-malformed-json branch January 7, 2022 23:00
jonabc added a commit that referenced this pull request Jan 7, 2022
## 3.4.1

2022-01-07

### Fixed

- Malformed package.json files will no longer crash yarn dependency detection (#431)
@jonabc jonabc mentioned this pull request Jan 7, 2022
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.

JSON::ParseError running licenced list
1 participant