From 23252579de00cd90a2219a9a4d846aa8988b9ca0 Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Tue, 24 Sep 2024 21:05:42 +0100 Subject: [PATCH] fix_: generate paths --- Makefile | 4 ++-- services/wallet/thirdparty/types.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index db2b9ecd8..a01940bcf 100644 --- a/Makefile +++ b/Makefile @@ -313,8 +313,8 @@ setup-dev: echo "Replaced by Nix shell. Use 'make shell' or just any target as-is." generate: - @packages=$(shell go list ./... | grep -v "./contracts") - @go generate "${packages}" + packages=$(call sh, go list ./... | grep -v "./contracts") + go generate $packages #go generate ./static ./static/mailserver_db_migrations ./t ./multiaccounts/... ./appdatabase/... ./protocol/... ./walletdatabase/... ./_assets/generate_handlers/... #go generate ./appdatabase/... diff --git a/services/wallet/thirdparty/types.go b/services/wallet/thirdparty/types.go index 394c8d3d6..a6eed3e78 100644 --- a/services/wallet/thirdparty/types.go +++ b/services/wallet/thirdparty/types.go @@ -1,6 +1,6 @@ package thirdparty -//go:generate mockgen -package=mock_thirdparty -source=services/wallet/thirdparty/types.go -destination=services/wallet/thirdparty/mock/types.go +//go:generate mockgen -package=mock_thirdparty -source=types.go -destination=mock/types.go type HistoricalPrice struct { Timestamp int64 `json:"time"`