apple / swift-argument-parser

Straightforward, type-safe argument parsing for Swift
Apache License 2.0
3.3k stars 311 forks source link

Mark `CommandConfiguration` as `Sendable` #615

Closed MaxDesiatov closed 6 months ago

MaxDesiatov commented 7 months ago

Lack of this marker protocol conformance causes warnings with strict concurrency checks, such as Static property 'configuration' is not concurrency-safe because it is not either conforming to 'Sendable' or isolated to a global actor; this is an error in Swift 6

Checklist

natecook1000 commented 7 months ago

Thanks, @MaxDesiatov! Didn't catch this one in #582 since the static configuration doesn't participate in a command's Sendable conformance.

natecook1000 commented 7 months ago

@swift-ci Please test

MaxDesiatov commented 7 months ago

Ready to merge?