Skip to content

Commit

Permalink
chore(mockery): address deprecation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Nov 27, 2024
1 parent af1c085 commit d69c4ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: |
set -euo pipefail
readonly MOCKERY=2.46.3 # N.B. no leading "v"
readonly MOCKERY=2.49.1 # N.B. no leading "v"
curl -sL "https://github.com/vektra/mockery/releases/download/v${MOCKERY}/mockery_${MOCKERY}_Linux_x86_64.tar.gz" | tar -C /usr/local/bin -xzf -
make mockery 2>/dev/null
Expand Down
4 changes: 3 additions & 1 deletion .mockery.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
---
with-expecter: false
with-expecter: true
dir: "{{.InterfaceDir}}/mocks"
mockname: "{{.InterfaceName}}"
outpkg: "mocks"
filename: "{{.InterfaceName | lower}}.go"
log-level: "warn"
disable-version-string: true
resolve-type-alias: false
issue-845-fix: True
all: false
packages:
github.com/dashpay/tenderdash/abci/client:
Expand Down
5 changes: 3 additions & 2 deletions scripts/mockery_generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
# runs the published Docker container. This legerdemain is so that the CI build
# and a local build can work off the same script.
#
VERSION=v2.46.3
VERSION=v2.49.1

if ! mockery --version 2>/dev/null | grep $VERSION; then
echo "Please install mockery $VERSION"
echo "Please install mockery $VERSION, example for Linux x86_64:"
echo "wget https://github.com/vektra/mockery/releases/download/${VERSION}/mockery_${VERSION#v}_Linux_x86_64.tar.gz"
exit 1
fi

Expand Down

0 comments on commit d69c4ea

Please sign in to comment.