-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Update -swift-version to default to 6 for swift-tools-version 6 #7469
Conversation
@swift-ci please test |
@swift-ci test |
We need to update
|
@swift-ci please test |
@swift-ci test |
1 similar comment
@swift-ci test |
d0a0efc
to
f5ee182
Compare
@swift-ci test |
f5ee182
to
0a4d57a
Compare
@swift-ci please test |
0a4d57a
to
417bfc8
Compare
@swift-ci please test |
458abfd
to
92b5601
Compare
@swift-ci please test |
92b5601
to
29ab4d5
Compare
@swift-ci please test |
29ab4d5
to
429dc36
Compare
@swift-ci please test |
47d63c2
to
9f7c5c7
Compare
@swift-ci please test |
be8cb20
to
a0aeb79
Compare
@swift-ci please test |
a0aeb79
to
608d216
Compare
@swift-ci please test |
608d216
to
6f4953c
Compare
@swift-ci please test |
6f4953c
to
33bb021
Compare
@swift-ci please test |
33bb021
to
099871f
Compare
@swift-ci please test |
099871f
to
3c3dab0
Compare
@swift-ci please test |
3c3dab0
to
e834159
Compare
@swift-ci please test |
@swift-ci please test Windows platform |
@@ -34,5 +34,6 @@ let package = Package( | |||
"MyPlugin2", | |||
] | |||
), | |||
] | |||
], | |||
swiftLanguageVersions: [.v5] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense!
We missed updating this when adding 6.0. The change itself is extremely simple, with the bulk being updates to our tests so they don't fail on old compiler versions (where language version "6" is unknown). Also removes disabling the concurrency and string processing imports from manifest loading, as this was causing the `package` global to not be main actor isolated by default and thus error in Swift 6. They seemed to have been disabled to avoid erroring in SDKs that didn't have them, but that is definitely not an issue any longer.
e834159
to
de3f697
Compare
@swift-ci please test |
@swift-ci please test Windows platform |
@swift-ci please test Linux platform |
…#7531) **Explanation**: Changes packages to default to swift version 6 when `swift-tools-version` is set `>= 6.0`. Without this change, all packages will be swift version 5 unless otherwise specified via `swiftLanguageVersions`. Packages default to `swift-tools-version: 6.0` with `swift package init`. Users can opt-out via specifying `swiftLanguageVersions: [.v5]`. **Scope**: New packages/those updated to 6.0. **Risk**: Medium. There's inherent risk due to the language mode bump. The change also removes disabling implicit imports for concurrency and string processing in manifest files, which hasn't been widely tested outside of ... **Testing**: New regression tests. Source compatibility suite run. **Original PR**: #7469
We missed updating this when adding 6.0. The change itself is extremely
simple, with the bulk being updates to our tests so they don't fail on
old compiler versions (where language version "6" is unknown).
Also removes disabling the concurrency and string processing imports
from manifest loading, as this was causing the
package
global to notbe main actor isolated by default and thus error in Swift 6. They seemed
to have been disabled to avoid erroring in SDKs that didn't have them,
but that is definitely not an issue any longer.