bazel icon indicating copy to clipboard operation
bazel copied to clipboard

//... target pattern includes synthetic targets

Open schroederc opened this issue 11 years ago • 3 comments

Bazel v0.1.2rc2 resolves //... to include a bunch of synthetic targets which cause the build to fail due to visibility issues.

For each target in Kythe's repository (i.e. //kythe/cxx/extractor:lib), there seems to be a corresponding target nested under the synthetic bazel-kythe package (i.e. //bazel-kythe/kythe/cxx/extractor:lib). This causes visibility issues since some //kythe/... targets have strict visibilities that do not include //bazel-kythe/... sub-packages.

What are the purpose of these synthetic targets?

schroederc avatar Dec 01 '15 23:12 schroederc

It also causes this error:

/home/schroederc/kythe/bazel-kythe/external/bazel_tools/tools/jdk/BUILD:119:1: no such package 'third_party/py/gflags': BUILD file not found on package path and referenced by '//bazel-kythe/external/bazel_tools/tools/jdk:proguard_whitelister'.

schroederc avatar Dec 02 '15 00:12 schroederc

The error you mentioned sounds like a symptom of https://github.com/bazelbuild/bazel/issues/652

zrlk avatar Dec 02 '15 09:12 zrlk

This appears to be a duplicate of #594.

schroederc avatar Dec 03 '15 22:12 schroederc