Skip to content

Update installation of mockery

What does this MR do?

Update the installation of mockery to download the file from GitHub instead of go get so that the version is set correctly and prevents changes in the generated mocks.

Why was this MR needed?

In https://github.com/vektra/mockery/pull/257 mockery changed how the version is specified https://github.com/vektra/mockery/pull/257/files#diff-3a895417c300af3c34fab6ebb556e984R9. When we run go get github.com/vektra/mockery/cmd/mockery the version is 0-0-dev when in reality it's a different version.

Fix master:broken because we check our mocks inside of CI to make sure they are not outdated.

Does this MR meet the acceptance criteria?

  • Documentation created/updated
  • Added tests for this feature/bug
  • In case of conflicts with master - branch was rebased

What are the relevant issue numbers?

Closes #25645 (closed)

Merge request reports