MakeAWishFoundation / SwiftyMockyCLI

SwiftyMocky CLI
MIT License
4 stars 7 forks source link

SwiftyMocky CLI does not run when installed via Mint #18

Open anuragajwani opened 2 years ago

anuragajwani commented 2 years ago

Hi,

I have installed SwiftyMockyCLI through Mint as recommended in the README of SwiftMocky when the dependency is installed view Carthage or SPM. Carthage in my case.

This is the message I get:

╔════════════════════════╗
║ SwiftyMocky CLI v4.2.0 ║
╚════════════════════════╝

Running at: [HIDDEN]
Using template from CLI
Processing mock: unit.tests.mock ...
Using sourcery command: ./Pods/Sourcery/bin/sourcery
❌  Error: ShellOut encountered an error
Status code: 127
Message: "/bin/bash: ./Pods/Sourcery/bin/sourcery: No such file or directory"
Output: "

There is no instruction that I have found that says Sorcery is required to be installed via Cocoapods. I would prefer at this point not to use Cocoapods. I did find that there is function to resolve the path for Sourcery binary, however if you checkout the code it expects Sorcery to be installed through SPM or Cocoapods but not Mint.

I would like to use Sourcery via Mint. I thought this was supported based on the Mintfile in the main SwiftyMocky repo.

Am I missing something here?

Anurag

anuragajwani commented 2 years ago

Update: I found that the code should fallback to mint however for some reason it understands that Sourcery at Cocoapods does in fact "exists".