Skip to content

Commit 6db0d8c

Browse files
Fix mockery install to work on Apple Silicon Macs (#772)
The URL used to download the Mockery binary is composed using the current hardware platform string. For Apple Silicon Macs, this is `aarch64`, whereas the Mockery binary uses `arm64`. This change uses `arm64` in place of `aarch64` as the hardware platform to build the Mockery download URL. The version of Mockery is also updated. Signed-off-by: Mark S. Lewis <[email protected]>
1 parent cc10ac3 commit 6db0d8c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.mockery.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
issue-845-fix: true
12
with-expecter: true
23
exported: true
34
filename: "{{.InterfaceName | lower}}_mock_test.go"

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ scenario_dir := $(base_dir)/scenario
1313

1414
go_bin_dir := $(shell go env GOPATH)/bin
1515

16-
mockery_version := 2.46.2
16+
mockery_version := 2.48.0
1717
kernel_name := $(shell uname -s)
1818
machine_hardware := $(shell uname -m)
19+
ifeq ($(machine_hardware), aarch64)
20+
machine_hardware := arm64
21+
endif
1922

2023
export SOFTHSM2_CONF ?= $(base_dir)/softhsm2.conf
2124
TMPDIR ?= /tmp

0 commit comments

Comments
 (0)