Open maxgip opened 2 months ago
Here's an example file from that repository: https://github.com/apple/swift-embedded-examples/blob/main/stm32-neopixel/Package.resolved
Hi @maxgip, thanks for the report! We'll put this in the backlog for the future. If you're interested in working on it, please let us know and we can help get you started.
What happened:
When running
syft
against a project using Swift Package Manager and a version 3 Package.resolved file, an error occured (error=unknown swift package manager version, 3.000000 location=/Package.resolved
) and the sbom output was incomplete:What you expected to happen:
No error, and syft to output similar to how it does for version 2 schemas:
Steps to reproduce the issue:
From a repo using SPM and Package.resolved version 3 (I used
stm32-neopixel
folder inhttps://github.com/apple/swift-embedded-examples
), runsyft
:Anything else we need to know?:
The V3 schema looks like a superset of V2, just has an additional (optional)
originHash
key:https://github.com/apple/swift-package-manager/blob/f4ab9a43f3cfbb8f184043435f925b67b0070f36/Sources/PackageGraph/PinsStore.swift#L386-L484
Environment:
Output of
syft version
:OS (e.g:
cat /etc/os-release
or similar):