Incorrect visibility rule breaks remote builds on Windows #4883
Labels
P3
We're not considering working on this, but happy to review a PR. (No assignee)
platform: windows
type: bug
Description of the problem / feature request:
On Windows, building a C++ Hello World program with
--define=EXECUTOR=remote
fails with a visibility problem.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
The WORKSPACE is empty.
Here's the exact command I'm running:
Here's my BUILD file:
Here's my
hello.cc
:Here's the output I get:
What operating system are you running Bazel on?
Windows Server 2016
What's the output of
bazel info release
?release 0.11.1
If
bazel info release
returns "development version" or "(@non-git)", tell us how you built Bazel.N/A
What's the output of
git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?N/A
Have you found anything relevant by searching the web?
No.
Any other information, logs, or outputs that you want to share?
The problem is this BUILD rule dependency: https://github.com/bazelbuild/bazel/blob/master/tools/def_parser/BUILD.tools#L6
The visibility of the depended on rule does not include tools/def_parser: https://github.com/bazelbuild/bazel/blob/master/third_party/def_parser/BUILD#L13
The use of this rule is triggered by --define=EXECUTOR=remote when building C++ on Windows (--cpu=x64_windows).
The text was updated successfully, but these errors were encountered: