Add support for yarn v4
What does this MR do?
- Maximum lock file version supported is
8
- Added a unit test to make sure that we can parse a yarn v4 lockfile
- Updated the malformed wrong version unit test
We are not adding an rspec test for yarn v4 since it doesn't add any value. We are already testing that we can parse the file in unit tests.
What are the relevant issue numbers?
Add yarn v4 support in Dependency Scanning (gitlab-org/gitlab#431752 - closed)
Does this MR meet the acceptance criteria?
-
Changelog entry added -
Documentation created/updated for GitLab EE, if necessary -
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Job definition updated, if necessary -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer
Edited by Nick Ilieskou