MakeAWishFoundation / SwiftyMocky

Framework for automatic mock generation. Adds a set of handy methods, simplifying testing. One of the best and most complete solutions, including generics support and much more.
MIT License
1.04k stars 106 forks source link

swift 6 #366

Open bukira opened 1 month ago

bukira commented 1 month ago

is swfithmocky compatible with swift 6?

❌ Error: ShellOut encountered an error Status code: 1 Message: "🌱 Encountered error during "swift build -c release --product sourcery -Xswiftc -target -Xswiftc arm64-apple-macosx14.6". Use --verbose to see full output 🌱 Failed to build Sourcery 1.8.0 with SPM" Output: "🌱 Cloning Sourcery 1.8.0 🌱 Resolving package 🌱 Building product sourcery Building for production... [0/31] Write sources [4/31] Copying lib_InternalSwiftSyntaxParser.dylib [4/31] Write sources [8/31] Copying ejs.js [8/31] Write sources [8/31] Copying lib_InternalSwiftSyntaxParser.framework [8/31] Write sources [20/31] Write swift-version--58304C5D6DBC2206.txt [21/33] Compiling atomic-counter.c [22/34] Compiling writer.c [23/34] Compiling reader.c [24/34] Compiling api.c [25/34] Compiling parser.c [26/36] Compiling emitter.c [27/36] Compiling scanner.c [28/37] Compiling TryCatch TryCatch.m [30/37] Compiling AEXML Document.swift [31/37] Compiling PathKit PathKit.swift [32/41] Compiling SourceryJS EJSTemplate.swift [33/41] Compiling SourceryUtils Path+Extensions.swift [34/41] Compiling Stencil Context.swift [35/41] Compiling Yams Constructor.swift [36/42] Compiling Commander ArgumentConvertible.swift [37/42] Compiling StencilSwiftKit CallMacroNodes.swift [38/42] Compiling SourceryRuntime AccessLevel.swift /private/var/folders/ww/hwd5bq0s6cddnvr08x3jdspr0000gn/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Array+Parallel.swift:21:17: warning: capture of 'buffer' with non-sendable type 'UnsafeMutableBufferPointer<T?>' in a @Sendable closure; this is an error in the Swift 6 language mode 19 | return result.withUnsafeMutableBufferPointer { buffer in 20 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in 21 | buffer[idx] = transform(self[idx]) | - warning: capture of 'buffer' with non-sendable type 'UnsafeMutableBufferPointer<T?>' in a@Sendable` closure; this is an error in the Swift 6 language mode 22 | } 23 | return buffer.map { $0! }

Swift.UnsafeMutableBufferPointer:1:23: note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol 1 | @frozen public struct UnsafeMutableBufferPointer : Copyable where Element : ~Copyable { | `- note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol 2 | public let count: Int 3 | @inlinable public init(start: UnsafeMutablePointer?, count: Int)

/private/var/folders/ww/hwd5bq0s6cddnvr08x3jdspr0000gn/T/mint/github.com_krzysztofzablockiSourcery/SourceryRuntime/Sources/Composer.swift:340:13: warning: initialization of immutable value 'modules' was never used; consider replacing with assignment to '' or removing it 338 | 339 | let unique = state.typeMap 340 | let modules = state.modules | `- warning: initialization of immutable value 'modules' was never used; consider replacing with assignment to '_' or removing it 341 | let typealiases = state.resolvedTypealiases 342 |

/private/var/folders/ww/hwd5bq0s6cddnvr08x3jdspr0000gn/T/mint/github.com_krzysztofzablockiSourcery/SourceryRuntime/Sources/Composer.swift:341:13: warning: initialization of immutable value 'typealiases' was never used; consider replacing with assignment to '' or removing it 339 | let unique = state.typeMap 340 | let modules = state.modules 341 | let typealiases = state.resolvedTypealiases | `- warning: initialization of immutable value 'typealiases' was never used; consider replacing with assignment to '_' or removing it 342 | 343 | if let name = typeName.actualTypeName {

/private/var/folders/ww/hwd5bq0s6cddnvr08x3jdspr0000gn/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Log.swift:60:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future 58 | } 59 | 60 | extension String: Error {} | |- warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future | `- note: add '@retroactive' to silence this warning 61 |

bukira commented 1 month ago

use the master branch and also sourcery in a new release please

bukira commented 1 month ago

swiftymocky doesnt appear to work with swift 6, either swiftmocky or sourcery, this repo hasn't had a new release since 2022? is this repo still supported?

bukira commented 1 month ago

is this library dead? does anybody bother with it anymore?