Fix bazel fetch command by providing //external:python_headers (#471)

For whatever reason, bazel fetch needs this resource defined while bazel build does not 😕. I would like to be able to run bazel fetch to fetch external dependencies without having to build the C++ or Go protobuf binaries.

Signed-off-by: Jamie Hewland <jamie@praekelt.org>
pull/465/head
Jamie Hewland 7 years ago committed by htuch
parent a0b91dc1a0
commit 7229f921ce
  1. 7
      WORKSPACE

@ -18,6 +18,13 @@ http_archive(
urls = ["https://github.com/google/protobuf/archive/v3.5.0.tar.gz"],
)
# Needed for ``bazel fetch`` to work with @com_google_protobuf
# https://github.com/google/protobuf/blob/v3.5.0/util/python/BUILD#L6-L9
bind(
name = "python_headers",
actual = "@com_google_protobuf//util/python:python_headers",
)
bind(
name = "six",
actual = "@six_archive//:six",

Loading…
Cancel
Save