-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bazel query rdeps fails in //external
because //:dummy
target doesn't exist
#8175
Labels
P2
We'll consider working on this in future. (Assignee optional)
team-Android
Issues for Android team
type: bug
Comments
ahumesky
added
P2
We'll consider working on this in future. (Assignee optional)
and removed
untriaged
labels
Apr 30, 2019
linzhp
added a commit
to linzhp/bazel
that referenced
this issue
Mar 29, 2022
I'm surprised that depending on jdk.BUILD only throws an error on query, but not already when the target is defined. It looks like there is another bug, that allows repo rules to depend on un-exported files from other packages. |
bazel-io
pushed a commit
that referenced
this issue
Mar 31, 2022
We need to query `kind('source file', deps(//external:*))` for sparse checkout, but were block by two issues: * `//external:remotejdk11_linux` depends on `tools/jdk/jdk.BUILD`, but it was not exported. Although this is not a problem for build, queries like `kind('source file', deps(//external:remotejdk11_linux))` would fail. * `//external:android_sdk_for_testing` is an alias for `//:dummy`, which is not available in other repositories. This also caused #8175. This pull request fixed both, including #8175. Closes #15134. PiperOrigin-RevId: 438605051
ckolli5
pushed a commit
that referenced
this issue
May 9, 2022
We need to query `kind('source file', deps(//external:*))` for sparse checkout, but were block by two issues: * `//external:remotejdk11_linux` depends on `tools/jdk/jdk.BUILD`, but it was not exported. Although this is not a problem for build, queries like `kind('source file', deps(//external:remotejdk11_linux))` would fail. * `//external:android_sdk_for_testing` is an alias for `//:dummy`, which is not available in other repositories. This also caused #8175. This pull request fixed both, including #8175. Closes #15134. PiperOrigin-RevId: 438605051
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
P2
We'll consider working on this in future. (Assignee optional)
team-Android
Issues for Android team
type: bug
Description of the problem / feature request:
Using
rdeps
against the//external
package fails because Bazel tries to resolve the android_sdk_for_testingbind
rule to//:dummy
using the local repository instead of Bazel's root BUILD.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
What operating system are you running Bazel on?
MacOS
What's the output of
bazel info release
?release 0.24.1
Any other information, logs, or outputs that you want to share?
A workaround is to add the dummy target in my local repo. It seems like Bazel should use it's own dummy target.
The text was updated successfully, but these errors were encountered: