Skip to content

SwiftArgumentParser: Update to 1.8.1#89404

Open
bkhouri wants to merge 1 commit into
swiftlang:release/6.4.xfrom
bkhouri:t/6.4.x/update_sap_to_1.8.0
Open

SwiftArgumentParser: Update to 1.8.1#89404
bkhouri wants to merge 1 commit into
swiftlang:release/6.4.xfrom
bkhouri:t/6.4.x/update_sap_to_1.8.0

Conversation

@bkhouri

@bkhouri bkhouri commented May 25, 2026

Copy link
Copy Markdown
Contributor

Update Swift Argument Parser to use release 1.8.0 to support SE-0501: HTML Coverage report

Relates to: swiftlang/swift-package-manager#9076

Cherry-pick #89403

Possibly requires swiftlang/swift-docker#560

@bkhouri bkhouri requested a review from a team as a code owner May 25, 2026 17:45
@bkhouri

bkhouri commented May 25, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci smoke test

@bkhouri

bkhouri commented May 25, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci test

@finagolfin

Copy link
Copy Markdown
Member

The linux CI is still using a really old pre-installed Swift 5.9.2 to build the early swift driver and this package, which is failing to compile.

The newly async failure on mac/win in swift-build I patched locally, will submit that.

@finagolfin

Copy link
Copy Markdown
Member

@finagolfin

Copy link
Copy Markdown
Member

@bkhouri

bkhouri commented May 26, 2026

Copy link
Copy Markdown
Contributor Author

@finagolfin : Thanks for publishing PR to the various repositories.

@bkhouri

bkhouri commented May 26, 2026

Copy link
Copy Markdown
Contributor Author

@finagolfin

Copy link
Copy Markdown
Member

The linux CI builds an early swift driver with this Argument Parser update using a prebuilt Swift 5.9.2, which doesn't recognize new Swift features like typed throws and internal imports in 1.8.0.

We'll need to either modify SAP 1.8.1 to keep working with Swift 5.9 or update the host compiler used to bootstrap the toolchain on the linux CI.

@finagolfin

Copy link
Copy Markdown
Member

Heh, the Docc tests also have async invocations that must be updated.

@bkhouri bkhouri force-pushed the t/6.4.x/update_sap_to_1.8.0 branch from 37b2f68 to 4eb4fdf Compare May 27, 2026 14:11
@bkhouri bkhouri changed the title SwiftArgumentParser: Update to 1.8.0 SwiftArgumentParser: Update to 1.8.1 May 27, 2026
@bkhouri

bkhouri commented May 27, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci test

@bkhouri

bkhouri commented May 27, 2026

Copy link
Copy Markdown
Contributor Author

Swift Argument Parser (SAP) 1.8.1 fixes a source compatibility regression. I updated the swift toolchain to up version to SAP 1.8.1 instead of 1.8.0

https://github.com/apple/swift-argument-parser/releases/tag/1.8.1

Update Swift Argument Parser to use release 1.8.1 to support
SE-0501: HTML Coverage report

Relates to: swiftlang/swift-package-manager#9076

(cherry picked from commit a914523)
@bkhouri bkhouri force-pushed the t/6.4.x/update_sap_to_1.8.0 branch from 4eb4fdf to ab290a6 Compare May 27, 2026 14:18
@bkhouri

bkhouri commented May 27, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci test

@bkhouri bkhouri enabled auto-merge May 27, 2026 14:20
@bkhouri bkhouri disabled auto-merge May 27, 2026 14:20
@bkhouri bkhouri enabled auto-merge May 27, 2026 14:20
@finagolfin

Copy link
Copy Markdown
Member

Won't this still fail on linux CI?

@finagolfin

Copy link
Copy Markdown
Member

Yep, still failing.

@bkhouri

bkhouri commented May 29, 2026

Copy link
Copy Markdown
Contributor Author

I believe this is currently an issue with the base docker image used to build the linux toolchain, which I believe is based on Swift 5.x, while the Swift Argument Parser 1.8.1 has a minimum of Swift 6.0.

it might require swiftlang/swift-docker#560, which will need to be thoroughly tested to ensure no regressions are introduced

bkhouri added a commit to bkhouri/swift-docker that referenced this pull request May 29, 2026
Swift Argument Parser 1.8.1 has a minimum requirements of Swift 6.0.

Update the Swift Version in the image used to build the Linux Swift
toolchain to use Swift 6.0 instead of Swift 5.x

Relates to: swiftlang/swift#89403
Relates to: swiftlang/swift#89404
@bkhouri

bkhouri commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci test linux

@bkhouri

bkhouri commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci test

@finagolfin

Copy link
Copy Markdown
Member

You'll need to wait till swiftlang/swift-docker#571 gets in to get the trunk version #89403 in, then this pull depends on if Mishal updates the host compiler in the linux 6.4 CI also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants