Query @sub//... of local_repository fails because of including @sub//bazel-subdir/ #10255
Labels
P3
We're not considering working on this, but happy to review a PR. (No assignee)
stale
Issues or PRs that are stale (no activity for 30 days)
team-ExternalDeps
External dependency handling, remote repositiories, WORKSPACE file.
type: feature request
Description of the problem / feature request:
Consider two repositories,
toprepo
which usessubrepo
.subrepo
is buildable of its own, which means thatsubrepo-checkout-dir/bazel-subrepo-checkout-dir
will exist. When working intoprepo
,bazel query @subrepo//...
will fail when traversing@subrepo//bazel-subrepo-checkout-dir
.Feature requests: what underlying problem are you trying to solve with this feature?
By solving #7093 and #9080, it would be possible to add
bazel-*
tosubrepo/.bazelignore
and therefore avoid the problem. I will ignorebazel-*
in all my future repositories, so consider addingbazel-*
as a default built-in ignore.Alternatively, teach
local_repository
to suppressbazel-*
folders or limit the suppression tobazel-{bin,out,testlogs}
andbazel-<dirname>
.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
results in
What operating system are you running Bazel on?
Linux (Ubuntu)
What's the output of
bazel info release
?release 1.1.0
The text was updated successfully, but these errors were encountered: