From 7229f921cef2ef75367fee5c757386489bf67483 Mon Sep 17 00:00:00 2001 From: Jamie Hewland Date: Wed, 7 Feb 2018 18:10:43 +0200 Subject: [PATCH] Fix bazel fetch command by providing //external:python_headers (#471) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- WORKSPACE | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/WORKSPACE b/WORKSPACE index 007ec17e..69fad36d 100644 --- a/WORKSPACE +++ b/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",