From e8e5fd7abc6c82145fbca28a4cb49111539cc0e0 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Tue, 26 Nov 2019 14:57:17 +0100 Subject: [PATCH] mobile: run goimports on generated files Subservers might depend on each other (notably walletrpc depends on signrpc) so running goimports ensures they properly import each other. --- mobile/gen_bindings.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mobile/gen_bindings.sh b/mobile/gen_bindings.sh index 8bb21039..1da7759a 100755 --- a/mobile/gen_bindings.sh +++ b/mobile/gen_bindings.sh @@ -72,3 +72,6 @@ do --proto_path=${DIRECTORY} \ ${file} done + +# Run goimports to resolve any dependencies among the sub-servers. +goimports -w ./*_generated.go