Tags: stass/blew
Tags
Bump swift-sdk to 0.12.0 to fix Swift 6 data-race errors
swift-sdk 0.11.0's NetworkTransport.send() and receiveData() capture
a local `var sendContinuationResumed`/`receiveContinuationResumed`
Bool inside a `Task { @mainactor in ... }` closure. Under Swift 6's
strict concurrency checking (Swift 6.3 / swiftlang-6.3.0), the local
var is task-isolated, so crossing it into a main-actor-isolated
closure triggers two #SendingRisksDataRace errors and breaks the
build:
NetworkTransport.swift:532: sending 'sendContinuationResumed'
risks causing data races
NetworkTransport.swift:763: sending 'receiveContinuationResumed'
risks causing data races
swift-sdk 0.12.0 fixes this by wrapping the flag in a
`@MainActor final class MainFlag { var flag = false }`, so the state
itself is main-actor isolated and no longer needs to be sent across
isolation domains.
Bumping the floor to 0.12.0 lets blew build cleanly on Swift 6.3.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>