Skip to content

Mockolo fails when source directory contains ".swift" suffix #356

Description

@wvteijlingen-npo

Given the following command and file structure, mockolo fails with an error. I think this is because mockolo attempts to interpret Directory.swift as a file instead of a directory because of the .swift suffix. We're running into this because we use the https://github.com/auth0/JWTDecode.swift package which calls itself "JWTDecode.swift".

mockolo --sourcedirs Sources
Sources
  Directory.swift
     File.swift

Error:

MockoloFramework/SourceParser.swift:105: Fatal error: Retrieving contents of /Users/[...]/Sources/Directory.swift failed

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions