Skip to content

make default target not include the target to generate code from the schema #6365

@ddustin

Description

@ddustin

When changing the RPC, the documentation auto generate doesn't seem to trigger. Doing these commands seems to generate the RPC documentation manually.

PYTHONPATH=contrib/msggen python3 contrib/msggen/msggen/__main__.py

python -m grpc_tools.protoc -I cln-grpc/proto cln-grpc/proto/node.proto --python_out=contrib/pyln-testing/pyln/testing/ --grpc_python_out=contrib/pyln-testing/pyln/testing/ --experimental_allow_proto3_optional
python -m grpc_tools.protoc -I cln-grpc/proto cln-grpc/proto/primitives.proto --python_out=contrib/pyln-testing/pyln/testing/ --experimental_allow_proto3_optional

find contrib/pyln-testing/pyln/testing/ -type f -name "*.py" -print0 | xargs -0 sed -i  's/^import \(.*\)_pb2 as .*__pb2/from . import \1_pb2 as \1__pb2/g'

These commands are ripped from the toplevel Makefile. Something seems to be making these not fire automatically during make.

Metadata

Metadata

Labels

Type::BugAn error, flaw, or fault that produces an incorrect or unexpected result

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions