You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the mockery command as above mockery --name='(.*)' --case=underscore --dir=src/lib/redis --output=src/lib/redis/mocks (change directory for own test)
You will get the error
Expected Behavior
No error
Actual Behavior
get error FTL Cannot specify --filename or --structname with regex in --name dry-run=false version=v2.21.4.
The text was updated successfully, but these errors were encountered:
Hi, so you are using --name which enters the code into the legacy behavior. The packages config should not be specified along with --name. What is happening to you is that the code is getting into a split-brain situation. I think I should make this more clear, so I will leave this open to make sure the code will fail under this scenario.
Description
I am getting this error
FTL Cannot specify --filename or --structname with regex in --name dry-run=false version=v2.21.4
.However, I dont call for filename and structname since I first use mockery for few years.
This is the command that I execute
mockery --name='(.*)' --case=underscore --dir=src/lib/redis --output=src/lib/redis/mocks
.The config file I use since v2.21.0 is as below
Mockery Version
v2.21.4
Golang Version
1.19.1
Installation Method
Steps to Reproduce
mockery --name='(.*)' --case=underscore --dir=src/lib/redis --output=src/lib/redis/mocks
(change directory for own test)Expected Behavior
No error
Actual Behavior
get error
FTL Cannot specify --filename or --structname with regex in --name dry-run=false version=v2.21.4
.The text was updated successfully, but these errors were encountered: