protoc-gen-validate
protoc-gen-validate copied to clipboard
Bazel build //... is broken
Running bazel clean
, bazel build //...
gives the following dependency error:
ERROR: /Users/rmichela/go/src/github.com/envoyproxy/protoc-gen-validate/vendor/golang.org/x/net/http2/h2i/BUILD.bazel:3:1: no such package '@org_golang_x_crypto//ssh/terminal': The repository '@org_golang_x_crypto' could not be resolved and referenced by '//vendor/golang.org/x/net/http2/h2i:go_default_library'
ERROR: Analysis of target '//vendor/golang.org/x/net/http2/h2i:go_default_library' failed; build aborted: no such package '@org_golang_x_crypto//ssh/terminal': The repository '@org_golang_x_crypto' could not be resolved
Bazel version 0.28.1
I'm building with bazel build //:protoc-gen-validate
without issue. Not sure what the correct syntax is. I recall what I'm using not being documented properly.
Hmm... I wonder if this is related to #267. bazel build //...
attempts to build the whole repo, including the vendor tree, in bazel.
bazel query "deps(//:protoc-gen-validate)"
shows that building the protoc-gen-validate binary does not pass through the h2i
dependency.