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 #15134

Closed
wants to merge 3 commits into from

Conversation

linzhp
Copy link
Contributor

@linzhp linzhp commented Mar 28, 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.

@linzhp linzhp changed the title Exporting tools/jdk/jdk.BUILD Fixing dependencies of //external package Mar 29, 2022
@ahumesky
Copy link
Contributor

Thanks, I can start the merge on this

@ahumesky
Copy link
Contributor

The //:dummy was probably intended to be

bazel/BUILD

Lines 44 to 47 in 13ae2c6

filegroup(
name = "dummy",
visibility = ["//visibility:public"],
)

and yeah, that won't necessarily exist in other workspaces

@linzhp
Copy link
Contributor Author

linzhp commented Mar 29, 2022

Right. It seems to have been there for several years, but I don't understand why it exists in the first place. Also //external:android_sdk_for_testing being exported to other workspaces doesn't sound right either, but that's out of scope of this PR.

@linzhp
Copy link
Contributor Author

linzhp commented Mar 31, 2022

@ahumesky any progress?

@ahumesky
Copy link
Contributor

Looks like the reasoning is here:
eb46a1b

I can submit this now, thank you again!

@bazel-io bazel-io closed this in dbb6e99 Mar 31, 2022
@linzhp linzhp deleted the jdk_build branch April 25, 2022 19:57
ckolli5 pushed a commit that referenced this pull request 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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants