Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift 6 concurrency guide syntax error #736

Open
mickeyl opened this issue Jun 21, 2024 · 2 comments
Open

Swift 6 concurrency guide syntax error #736

mickeyl opened this issue Jun 21, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@mickeyl
Copy link

mickeyl commented Jun 21, 2024

In https://www.swift.org/migration/documentation/swift-6-concurrency-migration-guide/swift6mode/ , it says

-swift-version 6 can be passed in a Swift package manager command-line invocation using the -Xswiftc flag:
~ swift build -Xswiftc -swift-version 6
~ swift test -Xswiftc -swift-version 6

which is wrong and leads to a syntax error. The correct invocations are

~ swift build -Xswiftc -swift-version -Xswiftc 6
~ swift test -Xswiftc -swift-version -Xswiftc 6

@mattmassicotte
Copy link

Thanks so much for finding this! The guide actually lives in a seperate repo, and I've got up a change to fix it here:

apple/swift-migration-guide#110

@dempseyatgithub
Copy link
Contributor

dempseyatgithub commented Jun 26, 2024

@mickeyl The migration guide has its own repository at https://github.com/apple/swift-migration-guide.

It doesn't look like I can transfer your issue there since the guide repository hasn't made the move to the swiftlang Github organization yet.

Probably the quickest way to have your feedback addressed would be to create an issue in that repository with this feedback.

EDIT: Looks like I was typing a comment into an unrefreshed page and this is already covered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants