Skip to content

feat(parser): Support Swift Package.resolved schema 2+ #5193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kublaios
Copy link

@kublaios kublaios commented Jul 2, 2025

The library currently only parses Swift Package Manager lock file schema version 1. In the newer versions (2 and 3), the JSON structure is slightly different:

{
  "object": {
    "pins": [
      {
        "package": "SwiftCheck",
        "repositoryURL": "git@github.com:typelift/SwiftCheck.git",
        "state": ...
      }
    ]
  },
  "version": 1
}
{
  "pins" : [
    {
      "identity" : "colorizer",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/getGuaka/Colorizer.git",
      "state" : ...
    }
  ],
  "version" : 2
}

This PR extends SPM support by parsing newer schema versions.

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.

1 participant