Skip to content

refactor: bump lockfile version to v9 instead of v7#7861

Merged
zkochan merged 3 commits intomainfrom
lockfile-v9
Apr 6, 2024
Merged

refactor: bump lockfile version to v9 instead of v7#7861
zkochan merged 3 commits intomainfrom
lockfile-v9

Conversation

@zkochan
Copy link
Member

@zkochan zkochan commented Apr 5, 2024

In order to align the lockfile version with pnpm version that ships it.

In order to align the lockfile version with pnpm version that ships it.
@zkochan zkochan requested a review from a team April 5, 2024 23:10
@zkochan zkochan merged commit 501133d into main Apr 6, 2024
@zkochan zkochan deleted the lockfile-v9 branch April 6, 2024 15:12
oliverchang pushed a commit to google/osv-scanner that referenced this pull request Apr 30, 2024
This adds support for v9 PNPM lockfiles which has a different structure
that looks to be similar to Yarn v2+ lockfiles.

I can't find a lot of clear detail on the actual changes so I've started
with just a "best effort" approach - most notably this means dev
grouping is lost because that detail is not represented in the new
format; we could probably successfully determine it by checking in
`snapshots` but that would be a lot more work so I'm leaving that as a
follow up.

The good news is it seems like going forward the lockfile version should
match the major verison of PNPM (pnpm/pnpm#7861)
which should make it easier to track these, and we can probably drop
explicit support for older versions in v2.

Resolves #931
josieang pushed a commit to josieang/osv-scanner that referenced this pull request Jun 6, 2024
This adds support for v9 PNPM lockfiles which has a different structure
that looks to be similar to Yarn v2+ lockfiles.

I can't find a lot of clear detail on the actual changes so I've started
with just a "best effort" approach - most notably this means dev
grouping is lost because that detail is not represented in the new
format; we could probably successfully determine it by checking in
`snapshots` but that would be a lot more work so I'm leaving that as a
follow up.

The good news is it seems like going forward the lockfile version should
match the major verison of PNPM (pnpm/pnpm#7861)
which should make it easier to track these, and we can probably drop
explicit support for older versions in v2.

Resolves google#931
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.

3 participants