Skip to content

Commit 73e082f

Browse files
authored
Update ArgumentParser dependency in Package.swift
Synchronized with swiftlang/swift-syntax#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 f2b3e6c commit 73e082f

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
@@ -217,7 +217,7 @@ if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
217217
url: "https://github.com/apple/swift-argument-parser.git",
218218
// This should be kept in sync with the same dependency used by
219219
// swift-syntax.
220-
Version("1.0.1")..<Version("1.2.0")
220+
.upToNextMinor(from: "1.2.2")
221221
),
222222
.package(
223223
url: "https://github.com/apple/swift-syntax.git",

0 commit comments

Comments
 (0)