-
Notifications
You must be signed in to change notification settings - Fork 10
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 5.10 #25
Swift 5.10 #25
Conversation
@ra1028 Do you know if its ok to use swift-syntax & swift-format 600 for swift 5.10? Or does it need to strictly match to swift version used in package..? |
@rasberik |
@ra1028 Thanks https://swiftpackageindex.com/swiftlang/swift-syntax/600.0.1/documentation/swiftsyntax/swift-version
And has build compatibility results here: https://swiftpackageindex.com/swiftlang/swift-syntax#readme But after your comment and deeper look, I feel there are unknown variables that are hard to verify and swift-mod is compiled with Xcode 15, may be its safer to leave it to another version & migration. I updated the deps to use |
@@ -10,7 +10,7 @@ jobs: | |||
strategy: | |||
matrix: | |||
xcode_version: | |||
- "15.0.1" | |||
- "15.4" |
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.
[note] Required to bump to get Swift 5.10
@@ -26,11 +26,11 @@ jobs: | |||
run: make test | |||
macOS: | |||
name: Test on macOS | |||
runs-on: macos-13 | |||
runs-on: macos-14 |
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.
[note] Required to get Xcode 15.4 support
Package.swift
Outdated
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMinor(from: "1.5.0")), | ||
.package(url: "https://github.com/apple/swift-syntax.git", .upToNextMinor(from: "510.0.3")), |
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.
Xcode 15.4 and 16.1 persistently complain with failed resolution (cannot find the repo)
Had to use xcodebuild -resolvePackageDependencies
on both Package.swift
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.
Not sure if related but the swift related repos have been migrated to under swiftlang/
from apple/
so please update them according to it.
Also, can you use exact
version instead of upToNextMinor
or from
?
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.
Good catch. Not related it turned out, updated: 3dbb137
@@ -301,10 +301,10 @@ You can also install swift-mod by downloading `swift-mod.zip` from the latest Gi | |||
|
|||
### Swift Version Support | |||
|
|||
`swift-mod` depends on [SwiftSyntax](https://github.com/apple/swift-syntax) that the version in use must match the toolchain version until Swift 5.7. |
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.
[note] Very difficult sentence that I couldnt understand, simplified
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.
until Swift 5.7
is not if important historical matter or forgotten to update
|5.8 and later|latest | | ||
|5.8 |0.2.0 | | ||
|5.9 |0.2.0 | | ||
|5.10 |0.2.1 | |
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.
[note] To be: 0.2.1
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.
It mostly looks good but left some comments
Package.swift
Outdated
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMinor(from: "1.5.0")), | ||
.package(url: "https://github.com/apple/swift-syntax.git", .upToNextMinor(from: "510.0.3")), |
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.
Not sure if related but the swift related repos have been migrated to under swiftlang/
from apple/
so please update them according to it.
Also, can you use exact
version instead of upToNextMinor
or from
?
Tools/Package.swift
Outdated
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Tools", | ||
dependencies: [ | ||
.package(url: "https://github.com/apple/swift-format.git", .upToNextMinor(from: "509.0.0")), | ||
.package(url: "https://github.com/apple/swift-format.git", .upToNextMinor(from: "510.1.0")), |
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.
Ditto
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.
LGTM 🚀
Checklist
Motivation and Context
Version bump for dependencies to latest and package swift version 5.10
Impact on Existing Code
For users, expecting none (any reliable way to verify?)