Skip to content

Commit

Permalink
fix: 馃悰 revert ArgumentParser version
Browse files Browse the repository at this point in the history
as ArgumentParser@1.1.4 requires
Xcode 13 (Swift 5.5) => macOS 11.3

this is not wanted as building from source
on lower OS version is desired
  • Loading branch information
MarcoEidinger committed Aug 30, 2022
1 parent a1d9673 commit b355a9f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Expand Up @@ -15,8 +15,8 @@
"repositoryURL": "https://github.com/apple/swift-argument-parser.git",
"state": {
"branch": null,
"revision": "9f39744e025c7d377987f30b03770805dcb0bcd1",
"version": "1.1.4"
"revision": "e394bf350e38cb100b6bc4172834770ede1b7232",
"version": "1.0.3"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Expand Up @@ -15,7 +15,7 @@ let package = Package(
],
dependencies: [
.package(name: "SourceKitten", url: "https://github.com/jpsim/SourceKitten", from: "0.31.1"),
.package(name: "swift-argument-parser", url: "https://github.com/apple/swift-argument-parser.git", from: "1.1.4"),
.package(name: "swift-argument-parser", url: "https://github.com/apple/swift-argument-parser.git", .upToNextMinor(from: "1.0.1")),
.package(name: "SwiftyBeaver", url: "https://github.com/SwiftyBeaver/SwiftyBeaver.git", .exact("1.9.5")),
],
targets: [
Expand Down
3 changes: 2 additions & 1 deletion man/README.md
@@ -1,4 +1,4 @@
The man page in this folder was generated with a Swift Package Plugin from `ArgumentParser`:
The man page in this folder was generated with a Swift Package Plugin from `ArgumentParser` (1.1.4):

```bash
# single page
Expand All @@ -11,4 +11,5 @@ The man page will automatically be copied to `/usr/local/share/man/man1/` when r

The reason why the man page is checked-in and not generated during `make install` is that I don't want to make Xcode 13.3 (= Swift 5.6 in which SPM introduced plugins) as a requirement for installation.

**IMPORTANT**: `ArgumentParser@1.1.4` requires Xcode 13 (Swift 5.5) => macOS 11.3+ so if building from source shall be supported for lower platform versions, e.g. macOS 10.5.4, then revert the `Package.swift` and the dependency declaration to `ArgumentParser` once the man page was generated.

0 comments on commit b355a9f

Please sign in to comment.