SwiftPackageIndex / SwiftPackageIndex-Server

The Swift Package Index is the place to find Swift packages!
https://swiftpackageindex.com
Apache License 2.0
522 stars 37 forks source link

Integrate the new SwiftPM `add-dependency` command in the "Use this package" modal #3189

Open daveverwer opened 1 week ago

daveverwer commented 1 week ago

Discussed in https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/discussions/3188

Originally posted by **MahdiBM** July 5, 2024 We have a new `add-dependency` command in Swift 6: ```bash swift package add-dependency https://github.com/DiscordBM/DiscordBM --from 1.12.0 ``` SPI's "Use this package" view should include this, with a small note that it requires Swift 6 CLI. Screenshot 2024-07-05 at 9 28 25 AM crates.io also references these commands, which reminded me that we recently got them in Swift too, so SPI can also do that: Screenshot 2024-07-05 at 9 32 12 AM