-
Notifications
You must be signed in to change notification settings - Fork 49
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 to Swift 6 #109
Update to Swift 6 #109
Conversation
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
Just a quick note to highlight that while many parts of the codebase, such as |
Those are basically dead code not visible to the user, they're not even part of a target and are stuck in very old versions of Imperial. |
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.
Overall this looks good to me. There's no major changes besides a/a instead of ELFs. Besides the parameters I'd try updating the existential return types to opaque types, that should work e.g for AsyncResponseEncodable
. I'd also add formatting
Co-authored-by: Paul Toffoloni <[email protected]>
Co-authored-by: Paul Toffoloni <[email protected]>
Co-authored-by: Paul Toffoloni <[email protected]>
Co-authored-by: Paul Toffoloni <[email protected]>
Co-authored-by: Paul Toffoloni <[email protected]>
Co-authored-by: Paul Toffoloni <[email protected]>
Co-authored-by: Paul Toffoloni <[email protected]>
I'm afraid that by activating formatting a lot of changes will be made that distract from the important ones. I'll do that in a separate PR |
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.
Let's also add Swift 6 language mode. I'm fine with the rest, not sure if @0xTim wants to chime in on something. I would also add some tests honestly, but that can be done later.
After thinking again I'm somewhat worried of the closures having to return opaques, as those are publicly passed in methods, but I guess we can see how that works in tests etc
Co-authored-by: Vamsi Madduluri <[email protected]>
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.
Great work!
In the last few commits I:
Let me know what you think! |
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.
Nothing blocking. I have thoughts about how much we're making package protected in case users want to extend Imperial to support other OAuth providers (especially internal ones that they can't upstream) but it's much easier to go that way than try and lock it down after. Lets get this into people's hands to start trying out
All requested changes have been addressed and resolved and the PR received an approval from Tim
EventLoopFuture
s in favor of async/awaitswift-format