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 2024-08-05 11:35:52 +02:00
parent 58317e66d3
commit e8da2fa0bd
No known key found for this signature in database
GPG Key ID: D7D916376026F177

View File

@ -50,18 +50,7 @@ function generate() {
PACKAGES="autopilotrpc chainrpc invoicesrpc neutrinorpc peersrpc routerrpc signrpc verrpc walletrpc watchtowerrpc wtclientrpc devrpc" PACKAGES="autopilotrpc chainrpc invoicesrpc neutrinorpc peersrpc routerrpc signrpc verrpc walletrpc watchtowerrpc wtclientrpc devrpc"
for package in $PACKAGES; do for package in $PACKAGES; do
# Special import for the wallet kit. opts="package_name=$package,js_stubs=1"
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"
pushd $package pushd $package
protoc -I/usr/local/include -I. -I.. \ protoc -I/usr/local/include -I. -I.. \
--plugin=protoc-gen-custom=$falafel\ --plugin=protoc-gen-custom=$falafel\