daml/language-support
Stefano Baghino 7467925aa1
Fetch status.proto from remote, simplify JS gRPC codegen (#285)
* Fetch status.proto from remote, simplify JS gRPC codegen

Fetch the `status.proto` file (part of the standard gRPC distribution)
from a distribution channel. _Moreover_, use the recently introduced
`proto_gen` rule to simplify how the gRPC code for the Node.js bindings
are generated (and remove the need to have `google/rpc/status.proto`
locally in the repository.

* Add plugin_runfiles option to proto_gen

This allows use to add additional files to the bazel sandbox so that
plugins can refer to them. This will subsequently be used by the
protoc-gen-doc plugin.

Also, pass the plugin options via --name_opt parameter.

* Add missing status.proto dependency /language-support/java and /ledger

* Build proto docs using the proto_gen rule

To make this work, I had to turn on the bazel build flag
`--protocopt=--include_source_info` because we cannot turn enable this
flag only for specific build rules.

* Make /ledger-api/grpc-definitions:docs public again

* Revert to the old style of passing plugin arguments to --name_out=options:path

* Suppress output of unzipping

* Fix link for google.rpc.Status in proto-docs
2019-04-09 10:30:01 +02:00
..
codegen-main Use DarReader for fat-dar reading in java-codegen (#261) 2019-04-08 11:46:20 +02:00
java Fetch status.proto from remote, simplify JS gRPC codegen (#285) 2019-04-09 10:30:01 +02:00
js Fetch status.proto from remote, simplify JS gRPC codegen (#285) 2019-04-09 10:30:01 +02:00
scala delete scala/codegen-sql-support and all related tests (#294) 2019-04-08 12:41:09 -04:00