Skip to content
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

Fixing dependencies of //external package #15341

Merged
merged 1 commit into from
May 9, 2022

Conversation

linzhp
Copy link
Contributor

@linzhp linzhp commented Apr 25, 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 bazel query rdeps fails in //external because //:dummy target doesn't exist #8175.

This pull request fixed both, including #8175.

This cherry-picks dbb6e99 into release-5.2.0

PiperOrigin-RevId: 438605051

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 bazelbuild#8175.

This pull request fixed both, including bazelbuild#8175.

Closes bazelbuild#15134.

PiperOrigin-RevId: 438605051
@linzhp linzhp requested a review from ckolli5 as a code owner April 25, 2022 23:01
@sgowroji sgowroji added team-Android Issues for Android team awaiting-review PR is awaiting review from an assigned reviewer labels Apr 26, 2022
@sgowroji sgowroji requested a review from ahumesky April 26, 2022 03:50
@linzhp linzhp mentioned this pull request Apr 26, 2022
6 tasks
Copy link

@ckolli5 ckolli5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ckolli5 ckolli5 merged commit b30b3ed into bazelbuild:release-5.2.0 May 9, 2022
@linzhp linzhp deleted the dummy branch May 9, 2022 16:36
@ShreeM01 ShreeM01 removed the awaiting-review PR is awaiting review from an assigned reviewer label Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Android Issues for Android team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants