daml/bazel_tools
Andreas Herrmann 66b407467f
Update protobuf docs plugin (#11880)
* Try to upgrade protobuf docs plugin

changelog_begin
changelog_end

* Fix extension number 65020 is already registered

Building `//ledger-api/grpc-definitions:ledger-api-docs` [failed
with](https://github.com/digital-asset/daml/issues/11761#issuecomment-978947565)
```
panic: proto: extension number 65020 is already registered on message google.protobuf.FieldOptions
```

Go dependencies are now pulled in via Gazelle. By default Gazelle will
generate new proto rules for any `.proto` files encountered in third
party Go dependencies. However, many of these already have pregenerated
`.pb.go` files generate with the appropriate configuration.

The problem can be avoided by configuring Gazelle to not generate new
proto rules, but instead use pre-existing `.pb.go` files.

For reference the field number is set in
[go-proto-validators](32a686adf8/validator.proto (L19))
which is an indirect dependency through protoc-gen-doc.

In this case we need to update protoc-gen-validate to v0.6.2 to include
4f41f10dde
which fixes unknown label errors.

* ./fmt

* Expose gRPC status.proto for Haskell bindings

* Update Gazelle to support embedsrcs on Windows

`protoc-gen-doc` relies on `go:embed` file embedding
2dde01902b/resources.go (L8).
Gazelle supports `embedsrcs`, however, it did not generate the attribute
correctly on Windows due to the different directory separator. This is
fixed in https://github.com/bazelbuild/bazel-gazelle/pull/1101.

* Add gazelle to compatibility workspace

It's loaded into `@daml`'s top-level `BUILD` file and ends up being a
dependency of the compatibility workspace as well.

* shift go_googleapis import

* Delete dead code

protobuf is imported transitively.

* Document how to add Go dependencies

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2021-11-25 20:51:24 +00:00
..
client_server [DPP-418] Protect Participant TLS keys (#10629) 2021-08-30 09:24:52 +02:00
dev_env_tool update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01:00
java_testing update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01:00
packaging fix: set LOCAL_ARCHIVE when unset (#8627) 2021-01-26 15:52:24 +01:00
runfiles Upgrade scalafmt and enable trailing commas (#8437) 2021-01-09 11:37:37 +01:00
scala Disable writing volatile bits in Scala statsfile (#11875) 2021-11-25 11:01:17 +00:00
scalapb Upgrade protobuf-java and scalapb. [KVL-938] (#9713) 2021-05-27 13:41:28 +00:00
sh Add golden test for example Daml ledger export (#9732) 2021-05-19 12:02:14 +00:00
build_environment.bzl update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01:00
BUILD.bazel Upgrade Scala 2.12 to v2.12.13. (#9280) 2021-03-30 11:02:18 +00:00
create_workspace.bzl update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01:00
damlc_legacy.bzl Drop LF < 1.14 from supported damlc output versions (#11701) 2021-11-22 16:20:17 +00:00
fat_cc_library.bzl Upgrade to Bazel 4.0 (#8798) 2021-02-11 10:08:47 +01:00
ghc_dwarf.bzl update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01:00
googleapis-status-proto.patch Update protobuf docs plugin (#11880) 2021-11-25 20:51:24 +00:00
grpc-bazel-apple.patch Pin rules_apple (#6845) 2020-07-24 09:47:05 +02:00
grpc-bazel-mingw.patch Upgrade gRPC C library (#8693) 2021-02-01 16:11:06 +01:00
grpc-haskell-core-cpp-options.patch Replace Hazel by stack_snapshot (#2743) 2019-11-22 14:24:08 +00:00
grpc-haskell-core-upgrade.patch Upgrade gRPC C library (#8693) 2021-02-01 16:11:06 +01:00
haskell_proto3_suite_deriving_defaults.patch Disable deriving-defaults per file (#8684) 2021-01-29 11:01:55 +00:00
haskell-c2hs.patch Building c2hs (#355) 2019-04-10 15:12:08 +02:00
haskell-ghc-8.10.7-bindist.patch Upgrade nixpkgs (#11490) 2021-11-02 15:52:55 +01:00
haskell-ghcide-binary-q.patch Enable assertions in Haskell builds (#6853) 2020-07-24 14:29:25 +00:00
haskell-hie-bios.patch Bump ghc-ghcide (#2936) 2019-09-18 10:29:02 +02:00
haskell-js-dgtable.patch Embed shake data-files via TH (#4584) 2020-02-18 17:53:27 +01:00
haskell-js-flot.patch Embed shake data-files via TH (#4584) 2020-02-18 17:53:27 +01:00
haskell-js-jquery.patch Embed shake data-files via TH (#4584) 2020-02-18 17:53:27 +01:00
haskell-lsp-test-no-reexport.patch Bump ghcide and upgrade to lsp/lsp-types (#10139) 2021-06-30 12:16:12 +00:00
haskell-opt.patch upgrade rules_haskell (#6284) 2020-06-10 17:21:31 +02:00
haskell-shake.patch Embed shake data-files via TH (#4584) 2020-02-18 17:53:27 +01:00
haskell-windows-extra-libraries.patch Fix typo in windows extra libs patch (#10538) 2021-08-11 11:00:03 +02:00
haskell-zip.patch Bump ghcide and upgrade to lsp/lsp-types (#10139) 2021-06-30 12:16:12 +00:00
haskell.bzl Switch to GHC 8.10.3 (#8394) 2021-01-25 11:53:53 +00:00
hlint.bzl update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01:00
java.bzl Explicitly import Java runtime from Nix/dadew (#11411) 2021-11-01 18:18:45 +01:00
javadoc_library.bzl update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01:00
lsp-types-normalisation.patch lsp-types patch for platform independence (#10288) 2021-08-04 21:33:52 +02:00
nixpkgs-disable-http2.patch upgrade rules_nixpkgs (#8078) 2020-11-30 14:36:46 +00:00
oracle.bzl Switch to an environment variable for enabling Oracle tests. (#9511) 2021-04-27 11:50:39 +00:00
os_info.bzl update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01:00
pkg.bzl update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01:00
pom_file.bzl Publish nameof library (#9798) 2021-05-26 09:58:02 +00:00
pom_template.xml rename master to main (#8245) 2020-12-27 14:19:07 +01:00
proto.bzl Update protobuf docs plugin (#11880) 2021-11-25 20:51:24 +00:00
remote_apis_no_services.patch Clean broken entries from the Bazel cache (#8668) 2021-01-28 17:57:09 +00:00
rules_nodejs_bash.patch open-sourcing daml 2019-04-04 09:33:38 +01:00
rules_nodejs_node_dependency.patch Upgrade rules-nodejs (#11290) 2021-10-19 14:13:55 +00:00
rules_nodejs_npm_cli_path.patch Upgrade rules-nodejs (#11290) 2021-10-19 14:13:55 +00:00
scala_version.bzl Drop Scala 2.12 support (#11619) 2021-11-17 18:38:43 +01:00
scala-escape-jvmflags.patch Upgrade rules_scala (#6883) 2020-07-28 08:53:12 +00:00
scala.bzl Factor kind projector target into a variable (#11759) 2021-11-18 09:51:43 +01:00
scalapb.bzl Update ScalaPB to the latest version (0.11.6) (#11409) 2021-10-28 09:28:02 +02:00