File tree Expand file tree Collapse file tree 5 files changed +7
-3
lines changed Expand file tree Collapse file tree 5 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ require (
28
28
github.com/spf13/viper v1.16.0
29
29
github.com/stretchr/testify v1.8.4
30
30
github.com/tendermint/tendermint v0.34.27
31
+ github.com/vektra/mockery/v2 v2.40.1
31
32
go.uber.org/zap v1.24.0
32
33
golang.org/x/net v0.14.0
33
34
golang.org/x/sync v0.3.0
Original file line number Diff line number Diff line change @@ -1893,6 +1893,8 @@ github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPU
1893
1893
github.com/valyala/fasttemplate v1.2.1 /go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ =
1894
1894
github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a /go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio =
1895
1895
github.com/vektah/gqlparser v1.1.2 /go.mod h1:1ycwN7Ij5njmMkPPAOaRFY4rET2Enx7IkVv3vaXspKw =
1896
+ github.com/vektra/mockery/v2 v2.14.0 h1:KZ1p5Hrn8tiY+LErRMr14HHle6khxo+JKOXLBW/yfqs =
1897
+ github.com/vektra/mockery/v2 v2.14.0 /go.mod h1:bnD1T8tExSgPD1ripLkDbr60JA9VtQeu12P3wgLZd7M =
1896
1898
github.com/vmihailenco/msgpack/v5 v5.3.5 /go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc =
1897
1899
github.com/vmihailenco/tagparser/v2 v2.0.0 /go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds =
1898
1900
github.com/vmware/govmomi v0.18.0 h1:f7QxSmP7meCtoAmiKZogvVbLInT+CZx6Px6K5rYsJZo =
Original file line number Diff line number Diff line change @@ -88,10 +88,10 @@ AKASHD_LOCAL_PATH := $(shell $(GO) list -mod=readonly -m -f '{{ .Dir
88
88
AKASHD_VERSION := $(shell $(GO ) list -mod=readonly -m -f '{{ .Version }}' $(AKASHD_MODULE ) | cut -c2-)
89
89
GRPC_GATEWAY_VERSION := $(shell $(GO ) list -mod=readonly -m -f '{{ .Version }}' github.com/grpc-ecosystem/grpc-gateway)
90
90
GOLANGCI_LINT_VERSION ?= v1.51.2
91
- GOLANG_VERSION ?= 1.16.1
92
91
STATIK_VERSION ?= v0.1.7
93
92
GIT_CHGLOG_VERSION ?= v0.15.1
94
- MOCKERY_VERSION ?= 2.32.0
93
+ MOCKERY_PACKAGE_NAME := github.com/vektra/mockery/v2
94
+ MOCKERY_VERSION ?= $(shell $(GO ) list -mod=readonly -m -f '{{ .Version }}' $(MOCKERY_PACKAGE_NAME ) )
95
95
K8S_CODE_GEN_VERSION ?= $(shell $(GO ) list -mod=readonly -m -f '{{ .Version }}' k8s.io/code-generator)
96
96
97
97
AKASHD_BUILD_FROM_SRC := false
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ $(GIT_CHGLOG): $(GIT_CHGLOG_VERSION_FILE)
70
70
$(MOCKERY_VERSION_FILE ) : $(AP_DEVCACHE )
71
71
@echo " installing mockery $( MOCKERY_VERSION) ..."
72
72
rm -f $(MOCKERY )
73
- GOBIN=$(AP_DEVCACHE_BIN ) go install -ldflags ' -s -w -X github.com/vektra/mockery/v2/ pkg/config.SemVer=$(MOCKERY_VERSION)' github.com/vektra/mockery/v2@v $(MOCKERY_VERSION )
73
+ GOBIN=$(AP_DEVCACHE_BIN ) go install -ldflags ' -s -w -X $(MOCKERY_PACKAGE_NAME)/ pkg/config.SemVer=$(MOCKERY_VERSION)' $( MOCKERY_PACKAGE_NAME ) @ $(MOCKERY_VERSION )
74
74
rm -rf " $( dir $@ ) "
75
75
mkdir -p " $( dir $@ ) "
76
76
touch $@
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ package tools
4
4
5
5
// nolint
6
6
import (
7
+ _ "github.com/vektra/mockery/v2"
7
8
_ "k8s.io/code-generator"
8
9
_ "sigs.k8s.io/kind"
9
10
)
You can’t perform that action at this time.
0 commit comments