I am trying to generate mocks in Golang using mockery, and the repo requires v0.0.0-dev.
I ran brew install mockery
but that only installs v2.15.0, and thus cannot generate mocks with v0.0.0-dev. How do I use/install mockery v0.0.0-dev? There is not much info online about this
CodePudding user response:
v0.0.0-dev
is the "_defaultSemVer
" used by mockery when debug.ReadBuildInfo
has no embedded build information.
In your case, the binary installed does include said build information, hence the 2.15.0, which is the latest release, as expected.
You should change the dependency to use an actual version (or, if you have to, use the @latest
).
Not v0.0.0-dev
, which depends on how mockery was built.