-
Notifications
You must be signed in to change notification settings - Fork 31
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
Support Xcode 15.3 and Swift 5.10 #113
Conversation
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
if [[ -n "${{ env.TOOLCHAINS }}" ]]; then | ||
xcrun --toolchain ${{ env.TOOLCHAINS }} swift test --verbose | ||
else |
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.
Please note why this workaround is necessary by comments
typealias ScipioAbsolutePath = TSCBasic.AbsolutePath | ||
typealias SwiftPMAbsolutePath = Basics.AbsolutePath | ||
|
||
#else | ||
|
||
// Below Swift 5.9, Basics.AbsolutePath is not implemented yet. So this is required to keep backward-compatibility | ||
|
||
typealias ScipioAbsolutePath = TSCBasic.AbsolutePath |
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.
Can you move it to out side of #if
block? like below. And please add comment to actual place where we need to typealias
typealias ScipioAbsolutePath = TSCBasic.AbsolutePath
#if swift(>=5.10)
// Above Swift 5.10, SwiftPM requires their own AbsolutePath,
// so we have to bridge them to Scipio requires by typealias
typealias SwiftPMAbsolutePath = Basics.AbsolutePath
#else
...
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's easy to understand to define this in both paths
Co-authored-by: freddi(Yuki Aki) <freddi-kit@users.noreply.github.com>
Support Xcode 15.3 beta 1