golang / mock

GoMock is a mocking framework for the Go programming language.
Apache License 2.0
9.3k stars 610 forks source link

Loading input failed: loading package failed #517

Closed guoshengcc closed 3 years ago

guoshengcc commented 3 years ago

I am use This command mockgen -source=gomockdemo.go get a error msg:Loading input failed: loading package failed

Then,In same env , use This comand mockgen -source gomockdemo.go,It work right. I am delete the '='

Additional Information

Triage Notes for the Maintainers

codyoss commented 3 years ago

Can you please provide a code snippet. I am unable to reproduce this currently.

guoshengcc commented 3 years ago

Hi, this is my code. I tried again and still got the same error. In the readme file in my project, I provided detailed information, hoping to provide valid content

codyoss commented 3 years ago

I tried running your exact project on windows and macos and was unable to reproduce. This package makes use of Go's flag package so it should be handling both forms just fine. My best guess is it is something related to your shell. Do you use anything non-standard? Do you have problems with other Go programs that use the flag package?

codyoss commented 3 years ago

Closing due to lack of response. Please feel free to update if there is more to share.