lnrpc/gen_protos: remove manual_imports

With the updated falafel version, there is no longer a need to specify
manual imports.
This commit is contained in:
Elle Mouton committed 2024-08-05 16:00:00 +02:00
1 parent 58317e66d3
commit e8da2fa0bd
1 file changed
+1 -12
+1 -12
View File
@@ -50,18 +50,7 @@ function generate() {
PACKAGES="autopilotrpc chainrpc invoicesrpc neutrinorpc peersrpc routerrpc signrpc verrpc walletrpc watchtowerrpc wtclientrpc devrpc"
for package in $PACKAGES; do
# Special import for the wallet kit.
manual_import=""
if [[ "$package" == "walletrpc" ]]; then
manual_import="github.com/lightningnetwork/lnd/lnrpc/signrpc"
fi
# Special import for devrpc.
if [[ "$package" == "devrpc" ]]; then
manual_import="github.com/lightningnetwork/lnd/lnrpc"
fi
opts="package_name=$package,manual_import=$manual_import,js_stubs=1"
opts="package_name=$package,js_stubs=1"
pushd $package
protoc -I/usr/local/include -I. -I.. \
--plugin=protoc-gen-custom=$falafel\