protoc-gen-validate icon indicating copy to clipboard operation
protoc-gen-validate copied to clipboard

Bazel build //... is broken

Open rmichela opened this issue 4 years ago • 2 comments

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

rmichela avatar Aug 28 '19 02:08 rmichela

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.

moderation avatar Aug 28 '19 02:08 moderation

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.

rmichela avatar Aug 28 '19 14:08 rmichela