swiftlang / swift-package-manager

The Package Manager for the Swift Programming Language
Apache License 2.0
9.65k stars 1.31k forks source link

Move getPackageMetadata to async/await #7727

Open AndrewHoos opened 2 days ago

AndrewHoos commented 2 days ago

Move more of the PackageCollection APIs to native async/await

Motivation:

More modern code that will be able to adopt swift 6 data race safety eventually

Modifications:

PackageMetadataProvider APIs are all now async/await PackageIndexProtocol APIs are all now async/await Added question about the need for returning PackageMetadataProviderContext when PackageBasicMetadata can not be read

Result:

More readable code

AndrewHoos commented 2 days ago

@swift-ci test