question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Yarn v2 support needed

See original GitHub issue

Is your feature request related to a problem? Please describe.

Yarn v2 introduced a new lockfile format that now adheres to YAML. I believe ATM when trying to run lockfile-lint on a project with yarn v2, lockfile-lint tries to use the v1 parser and fails with an error.

ABORTING lockfile lint process due to error exceptions

Unable to parse lockfile "yarn.lock"

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

Describe the solution you’d like

As far as I can tell, yarn v2 does not have an equivalent lockfile parser. But since it adheres to YAML now, I’m wondering if it is possible to just use a parser like yaml and create a small function to transform it like parseNpmLockfile?

Describe alternatives you’ve considered

None.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:11
  • Comments:22 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
brad-deckercommented, Nov 22, 2022

@kachkaev if you or someone else wants to tackle please go for it. Otherwise i’ll take a stab at it soon

1reaction
candrewscommented, Nov 21, 2022

Can the title of this issue please be updated to “Yarn v2 support needed” for accuracy since NPM v7 is already supported?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migration | Yarn - Package Manager
A step-by-step and in-depth migration guide from Yarn 1 (Classic) to Yarn 2 (Berry).
Read more >
Yarn 2 — the future of package managers for JavaScript? - Snyk
Getting started with Yarn 2 requires you to have an up to date version of Node.js, at minimum Node.js 10. In any case,...
Read more >
Introducing Yarn 2 ! - DEV Community ‍ ‍
Hi everyone! After exactly 365 days of very intensive development, I'm extremely happy to unveil the first stable release of Yarn 2.
Read more >
Migrating our Monorepo to Yarn 2 | DoltHub Blog
In the end, the actual changes required to migrate to Yarn 2 were not that ... Yarn 2 no longer supported this argument,...
Read more >
Migrating to Yarn 2 - Heroku Dev Center
Heroku users using Yarn are not required to migrate to Yarn 2, ... on caching from the .yarn/cache directory, but it is not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found