mockery icon indicating copy to clipboard operation
mockery copied to clipboard

throw an error if file with the same name already exists

Open ilgooz opened this issue 6 years ago • 2 comments

I had a file with name storage.go and I executed following command to create mocks:

mockery -name=Storage -dir ./articles -output ./articles

It deleted my file without an error and I lost it's content...

ilgooz avatar Nov 22 '18 14:11 ilgooz

But if you regenerate file it should overwrite existing. So it should be possible

sergii4 avatar Mar 16 '19 08:03 sergii4

Definitely need to fix, this is a horrible behavior.

LandonTClipp avatar Jun 29 '20 04:06 LandonTClipp

Hi, v1 is not supported anymore. Please open a new ticket if you still experience this issue in the latest version of mockery. I am trying to go through a backlog of issues that were created previous to my time as a maintainer of this project, as most of these problems are v1 which we don't support. Closing this ticket. Thanks!

LandonTClipp avatar Apr 06 '23 21:04 LandonTClipp