pointfreeco / swift-snapshot-testing

📸 Delightful Swift snapshot testing.
https://www.pointfree.co/episodes/ep41-a-tour-of-snapshot-testing
MIT License
3.74k stars 570 forks source link

swift 6 build fails due to Snapshotting not conforming to sendable #877

Closed doozMen closed 1 month ago

doozMen commented 1 month ago

Describe the bug When I put my package.swift in 6.0 version it no longer compiles and gives this error. I guess I could disable language mode 6.0 but have no clue how to do that in package.swift.

But I was not expecting it not to compile as the readme states it works on 6.0???

Screenshot 2024-07-23 at 19 12 01

To Reproduce

swift-driver version: 1.111.2 Apple Swift version 6.0 (swiftlang-6.0.0.5.15 clang-1600.0.22.6) Target: arm64-apple-macosx14.0

Expected behavior As it supoers Screenshots If applicable, add screenshots to help explain your problem.

Environment

Additional context Will try to make pr to fix it

stephencelis commented 1 month ago

@doozMen Are you using SnapshotTesting via SPM? Your language mode should be independent of a dependency, so these errors sound like bugs. Wanna share a project that reproduces the problem?

doozMen commented 1 month ago

Yes they due sound like bugs not related to snapshot testing and I have them in 1 project and not the other. So I guess I should create bug in swift 6 but as it is in beta I'm hesitant. I enjoy using it in other swift 6 project so will close this issue here as I think you are write and it is a bug. Thanks for the quick reply!