-
Couldn't load subscription status.
- Fork 43
Support Swift 6.2 #38
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
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.
While you're at it I think these should really be one commit. I can squash it myself but if you are going to make changes you might as well do it
unxip.swift
Outdated
| } | ||
| } | ||
|
|
||
| struct MeasureFilesystemOperationAction: Sendable { |
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.
I feel like it's a bug that you need this at all. Nonetheless you can just make it a static function on Files rather than needing to make a structure for it.
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.
agreed it's a bug, I'm unsure why Swift was complaining about this. don't think it can be static because we capture the file local, but I turned it into a method on File instead.
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.
Ah, yes, I had profiling disabled so I didn't spot that. I think I would prefer if this was static though since it's not relevant to any other clients of File and is only used inside of Files. Can you change this to measureFilesystemOperation(named:on:operation:) (that is, adding a file parameter) and keep it local?
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.
yessir done
0f4084f to
3e98e46
Compare
|
@saagarjha i think GitHub Actions is unhappy about using secrets from the primary repo in a PR from a fork |
|
I approved the workflow so it should have access. Sorry for messing up your branch but I'll clean it up once I figure this out |
Changes are mostly standard Swift Concurrency thrash.
The one notable change is that Swift 6.2 makes metatypes non-Sendable by default (due to SE-0470 Isolated Conformances) so we need to add
SendableMetatypeconstraints… but we have to gate these behind#if swift(>=6.2)sinceSendableMetatypeisn't known to the 6.0/6.1 compiler.