diff options
Diffstat (limited to 'third_party/repo.bzl')
-rw-r--r-- | third_party/repo.bzl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/repo.bzl b/third_party/repo.bzl index 36f5aa5bde..c719f745ac 100644 --- a/third_party/repo.bzl +++ b/third_party/repo.bzl @@ -88,7 +88,9 @@ def _tf_http_archive(ctx): if ctx.attr.patch_file != None: _apply_patch(ctx, ctx.attr.patch_file) if ctx.attr.build_file != None: - ctx.template("BUILD", ctx.attr.build_file, { + # Use BUILD.bazel to avoid conflict with third party projects with + # BUILD or build (directory) underneath. + ctx.template("BUILD.bazel", ctx.attr.build_file, { "%prefix%": ".." if _repos_are_siblings() else "external", }, False) |