vektra / mockery

A mock code autogenerator for Go
https://vektra.github.io/mockery/
BSD 3-Clause "New" or "Revised" License
5.8k stars 395 forks source link

Fix an issue with using exclude on windows #780

Closed iangregsondev closed 1 month ago

iangregsondev commented 1 month ago

Description

Using exclude either in the mockery.yaml or on the command line would throw an error on Windows. This was due to the path separator on package names, it would try to use the Windows separator which is a backslash and not a forward slash.

Type of change

Version of Golang used when building/testing:

How Has This Been Tested?

It was tested on a real windows machine.

Checklist

iangregsondev commented 1 month ago

Sure, my IDE did that :-( I will undo the formatting changes. Probably be tomorrow now.

I don't see how I am able to test it to be truthful.

iangregsondev commented 1 month ago

@LandonTClipp I have removed the formatting done by my IDE.

It's now easier to reason about, less code on the diff.

Thanks

LandonTClipp commented 1 month ago

Thank you!