uber / mockolo

Efficient Mock Generator for Swift
Apache License 2.0
805 stars 85 forks source link

update SwiftArgumentParser #164

Closed nk-5 closed 2 years ago

nk-5 commented 2 years ago

Overview

Motivation

When used with swift-format v0.50500.0 , there is a problem with swift package resolve not being able to resolve dependencies

error: Dependencies could not be resolved because root depends on 'swift-format' 0.50500.0 and root depends on 'mockolo' 1.6.0.
'mockolo' is incompatible with 'swift-format' because 'mockolo' 1.6.0 depends on 'swift-argument-parser' 0.4.3 and 'swift-format' >= 0.50500.0 depends on 'swift-argument-parser' 1.0.1..<1.1.0.

When using mockolo v1.6.0 without upgrading to swift-format v0.50500.0 , the following error occurred and SwiftSyntax was not dependent on it

Start...
["Process input mock files..."]
["Took", 0.00010597705841064453]
["Process source files and generate an annotated/protocol map..."]
MockoloFramework/SourceParser.swift:101: Fatal error: The operation couldn’t be completed. (SwiftSyntax.ParserError error 1.)
CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.