You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When parsing a `yarn.lock v1` file, ScanCode does not handle aliases properly.
Aliases have the form: `<alias-package>@npm:<package>`
More info about aliases: https://classic.yarnpkg.com/lang/en/docs/cli/add/#toc-yarn-add-alias
The current code incorrecly parse aliases and end up throwing an exception, resulting in empty results.
A single alias in a yarn.lock file is gonna make the parser return 0 packages.
This patch adds the logic to handle them by simply dropping the alias part, and just keeping the package part.
Test plan: updated the unit tests.
Signed-off-by: Adrien Schildknecht <[email protected]>
0 commit comments