Closed vijaykatam closed 5 years ago
Hi @vijaykatam,
I'm having problems reproducing this. What's the git commit sha of github.com/aws/aws-sdk-go
in your case?
Also could you post the content that you replaced by ....
in you first snippet? Line 4 of that should show us where things actually go wrong.
Thanks, Peter
Hi @petergtz thanks for responding. Looks like I had to specify package name explicitly as gofmt doesn't like the generated package as it had a combination of -
and _
The experimental-model-gen still panics but please feel free to close this issue as you have indicated it is work in progress.
@vijaykatam Yes, indeed I could reproduce your problem by using a package name with -
in the name. Thanks for posting and glad that you found a way to work around it. I still think there is room to improve the user experience here, because we know what the problem is. Will leave this issue for that reason and will come up with a solution for it.
@vijaykatam Just released v2.0.1 which should fix this kind of issue for good. Closing this issue. Please re-open if you think there's still something not working.
I am seeing panics when generating a mock for an interface.
go version go1.11.4 darwin/amd64 pegomock v2.0.1
With experimental-model-gen