gojuno / minimock

Powerful mock generation tool for Go programming language
MIT License
577 stars 38 forks source link

Version flag is missing #46

Closed beono closed 4 years ago

beono commented 4 years ago

Hi,

There was a flag -version and now it's missing for some reason. https://github.com/gojuno/minimock/pull/9

It would be nice to bring it back

hexdigest commented 4 years ago

Hi @beono

Please try v3.0.6

It should output version in the following way:

minimock -version
MiniMock version 3.0.6
Git commit: 57f4d9b2072f15ca9ca016c7a42604721cb81982
Build date: 2019-11-15T12:58:29+03:00
beono commented 4 years ago

@hexdigest

Hi, thanks for your attention to this issue.

Unfortunately, I get this

$ go install github.com/gojuno/minimock/v3/cmd/minimock
$ minimock -version
MiniMock version dev
Git commit: dev
Build date: 2019-11-15T14:03:29+03:00
hexdigest commented 4 years ago

@beono -version flag shows version of the official build which is injected at compile time if you install it using go install it will always show "dev"