Skip to content

Commit 808d403

Browse files
authored
Update ArgumentParser dependency in Package.swift (#1408)
1.2.2 is the version of ArgumentParser used by the toolchain, according to the checkout config: https://github.com/apple/swift/blob/277674a642b058fe95c37e24d5c861c5b81b6a82/utils/update_checkout/update-checkout-config.json#L103 Sticking to the old versions like 1.0.x and 1.1.x has negative downstream effects, since tools using SwiftSyntax (like `swift-format`) are restricted to these versions too, which can easily conflict with other packages. A more general solution could be to rely on SemVer and use `.upToNextMajor` instead of `.upToNextMinor`.
1 parent 20d5fb9 commit 808d403

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ let package = Package(
219219
if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
220220
// Building standalone.
221221
package.dependencies += [
222-
.package(url: "https://github.com/apple/swift-argument-parser.git", Version("1.0.1")..<Version("1.2.0"))
222+
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMinor(from: "1.2.2"))
223223
]
224224
} else {
225225
package.dependencies += [

0 commit comments

Comments
 (0)