Skip to content
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

Add support for Swift PM #2657

Closed
pombredanne opened this issue Aug 21, 2021 · 2 comments · Fixed by #3788
Closed

Add support for Swift PM #2657

pombredanne opened this issue Aug 21, 2021 · 2 comments · Fixed by #3788

Comments

@pombredanne
Copy link
Contributor Author

There are a few use cases:

  • we have a Package.resolved (solo or with a Package.swift source)
  • we do not have a Package.resolved, only Package.swift

We would need to run the swiftpm with either options:

  • swift package show-dependencies
  • swift package dump-package

And get a JSON output.
Running these commands should be only documented for now. The general approach will be tracked in this issue to run package managers outside of ScanCode.

@pombredanne
Copy link
Contributor Author

A twist to consider later: https://docs.swift.org/package-manager/PackageDescription/PackageDescription.html#package-dependency

If you add the Swift package as a package dependency to an app for an Apple platform, you can find the Package.resolved file inside your .xcodeproj or .xcworkspace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants