Skip to content

Mark Hub.Repo Sendable for Swift 6.2 region isolation#71

Open
Foscoe63 wants to merge 1 commit into
osaurus-ai:mainfrom
Foscoe63:fix/vmlxhub-repo-sendable-pinned
Open

Mark Hub.Repo Sendable for Swift 6.2 region isolation#71
Foscoe63 wants to merge 1 commit into
osaurus-ai:mainfrom
Foscoe63:fix/vmlxhub-repo-sendable-pinned

Conversation

@Foscoe63

Copy link
Copy Markdown

Summary

  • Mark Hub.RepoType and Hub.Repo as Sendable.
  • Fixes Xcode 27 / Swift 6.2 build failure in HubApi.swift when VMLXHub is compiled with StrictConcurrency:
HubApi.swift:849:51: error: sending 'self.repo' risks causing data races

HubFileDownloader.download() passes repo into an async withTaskCancellationHandler closure; the repo identity types are immutable String-backed values and are safe to send.

Test plan

  • swift build --target VMLXHub
  • Osaurus app build on Xcode 27

Made with Cursor

VMLXHub enables StrictConcurrency; HubFileDownloader passes repo across an
async withTaskCancellationHandler boundary. Sendable conformance matches the
immutable String-backed repo identity types and fixes Xcode 27 data-race errors.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant