Simek / yarn-lock-changes

Creates a comment inside Pull Request with the human-readable summary of changes to the Yarn lock file. Works with every Yarn version (classic and berry).
https://github.com/marketplace/actions/yarn-lock-changes
MIT License
132 stars 20 forks source link

Feature Request: Support `yarn.lock` generated by Yarn 2 and later #34

Closed tido64 closed 2 years ago

tido64 commented 3 years ago

The format of yarn.lock changed in a more recent version of Yarn:

Error: Unknown token: { line: 3, col: 2, type: 'INVALID', value: undefined } 3:2 in lockfile

It would be great the new format is also supported. Especially because Yarn 3 is pretty promising.

You can find the full build log here: https://github.com/microsoft/react-native-test-app/runs/3182759815?check_suite_focus=true

Simek commented 3 years ago

Hi @tido, thank you feature request! 👍

Unfortunately it looks like the official Yarn lock parser (which this action uses) is no longer maintained and will not be updated to support v2 or v3 locks:

I will explore the other possibilities where it comes to the lock parser, one of which might be interesting is a package from Snyk, which currently support Yarn v1 and v2 locks (as well as npm lock, which support was discussed earlier in #25):