swift-outdated icon indicating copy to clipboard operation
swift-outdated copied to clipboard

Package Registry support on output instead of URL

Open apps4everyone opened this issue 3 months ago • 1 comments

SPM support registries therefore it would be nice to have the registry ID (instead of the url) listed in the output.

example:

% swift outdated                                                                                                                                                      
| Package           | Current | Latest  | URL |
|-------------------|---------|---------|-----|
| george.formatting | 0.2.3   | 24.6.21 |     |

https://github.com/apple/swift-evolution/blob/main/proposals/0292-package-registry-service.md

extension Package.Dependency {
    /// Adds a dependency on a package with the specified identifier
    /// that uses the provided version requirement.
    public static func package(
        id: String,
        _ requirement: Package.Dependency.VersionBasedRequirement
    ) -> Package.Dependency
}

apps4everyone avatar Mar 05 '24 19:03 apps4everyone