Skip to content

add support for yarn lockfile version 9 and 10 - #34

Merged
VanCoding merged 2 commits into
VanCoding:mainfrom
Newkoop:support-for-yarn-berry-4.18
Oct 5, 2026
Merged

VanCoding merged 2 commits into
VanCoding:mainfrom
Newkoop:support-for-yarn-berry-4.18

Conversation

@Newkoop

@Newkoop Newkoop commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

This is for the newer yarn versions where the lockfile version changed and an error was thrown since the support was to version 8 . I added 9 and 10 to it. For the check i had to overwrite the pinned yarn version, as stated in the comment.

Hopefully it helps!

@VanCoding

Copy link
Copy Markdown
Owner

Hi & thanks for the PR.

From the changes it looks like the same parser can handle all 3 lockfile formats. so i think updating yarn should be a separate PR. And instead of overriding it propably makes more sense to just update nixpkgs.

Keep this PR limited to accepting yarn berry lockfile versions 9 and 10
in the parser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Newkoop

Newkoop commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

Thanks! Makes sense. I've reduced this PR to just the parser change, since the existing parser handles versions 9 and 10 as-is. I'll open a separate PR that updates nixpkgs (which now has yarn-berry 4.18.0) and moves the yarn-berry fixture to lockfile version 10, so it's covered in CI.

@VanCoding
VanCoding merged commit 1d00be5 into VanCoding:main Oct 5, 2026
@VanCoding

Copy link
Copy Markdown
Owner

Merged. Thanks :)

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.

2 participants