matryer / moq

Interface mocking tool for go generate
http://bit.ly/meetmoq
MIT License
1.96k stars 126 forks source link

Fix version command #195

Closed horpto closed 1 year ago

sudo-suhas commented 1 year ago

What problem is this fixing? The version command is working as expected:

mkdir -p /tmp/moq-v-test \
  && cd $_ \
  && wget -qO- https://github.com/matryer/moq/releases/download/v0.3.1/moq_0.3.1_macOS_arm64.tar.gz \
    | tar zxvf - --directory=. \
  && ./moq -version
x LICENSE
x README.md
x moq
moq version 0.3.1

It is printing the version as expected.

breml commented 1 year ago

This was originally part of #193 and I suggested to extract it to a separate PR, but I did not check if it is working or not. To me, it looks like https://github.com/matryer/moq/blob/main/.goreleaser.yml#L15 is doing the right thing already.