-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
Compilation error with ModelTokenAuthenticatable conformance #780
Labels
bug
Something isn't working
Comments
@matthewcheok does it work if you change the key paths to nonisolated(unsafe) static let valueKey = \Token.$value
nonisolated(unsafe) static let userKey = \Token.$user |
I'm assuming |
Yes it is sendable. It simply suggests removing the nonisolated(unsafe)
attribute.
…On Sat, Oct 5, 2024 at 7:34 PM Tim Condon ***@***.***> wrote:
I'm assuming UserModel is a sendable model as well? What does the fixit
suggest?
—
Reply to this email directly, view it on GitHub
<#780 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABCR6LCKVIBIG2HM2P25MPTZ2BZO3AVCNFSM6AAAAABPNSTHZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGIZDMMRZGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This does look like an issue with |
any updates here? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue
I'm getting a compilation error after upgrading to Swift 6.0.1 and Vapor 4.106
Vapor version
4.106.0
Operating system and version
macOS 15.1
Swift version
Swift 6.0.1
Steps to reproduce
Here's the model for my
Token
entity.Outcome
Errors inline
Additional notes
No response
The text was updated successfully, but these errors were encountered: