Mockery changed versioning scheme breaking our CI
Overview
We use mockery to generate our mocks with make mocks
command. Every time we run make mocks
we run go get github.com/vektra/mockery/cmd/mockery
and then generate the mocks. With the latest release how it generates the version number has changed and is set during build time inside of their CI. So when we "install" it with go get
the mockery -version
outputs 0.0.0-dev
which results into a diff with the generated mocks:
-// Code generated by mockery v1.0.0. DO NOT EDIT.
+// Code generated by mockery v0.0.0-dev. DO NOT EDIT.
This is especially a problem because we check our mocks inside of CI to make sure they are not outdated.
Proposal
Update how we install mockery to similar to release index generator so it downloads the binaries provided in the releases instead of running go get
this would help us removing mockery
from the vendor directory as well.