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

Use remap_paths to android_tools #17187

Closed

Conversation

Bencodes
Copy link
Contributor

@Bencodes Bencodes commented Jan 10, 2023

This ensures that the all_android_tools_deploy.jar and ImportDepsChecker_deploy.jar artifacts end up in the root of the tar where exports_files is able to reference them.

Before this PR the tar had the following directory structure:

  ./
  ./BUILD
  ./WORKSPACE
  ./desugar_jdk_libs.jar
  ./version.txt
  ./src/java_tools/import_deps_checker/java/com/google/devtools/build/importdeps/ImportDepsChecker_deploy.jar
  ./src/tools/android/java/com/google/devtools/build/android/all_android_tools_deploy.jar

After:

  BUILD
  ImportDepsChecker_deploy.jar
  WORKSPACE
  all_android_tools_deploy.jar
  desugar_jdk_libs.jar
  version.txt

@Bencodes
Copy link
Contributor Author

@ted-xie @ahumesky mind taking a look at this?

@ShreeM01 ShreeM01 added team-Android Issues for Android team awaiting-user-response Awaiting a response from the author labels Jan 10, 2023
@ted-xie
Copy link
Contributor

ted-xie commented Jan 11, 2023

Looks like there were a few presubmit errors. I peeked at the first one:

ERROR: error loading package under directory '': error loading package 'tools/android/runtime_deps': Unable to find package for @rules_pkg//pkg:tar.bzl: The repository '@rules_pkg' could not be resolved: Repository '@rules_pkg' is not defined.

@ted-xie
Copy link
Contributor

ted-xie commented Jan 12, 2023

I cherry-picked this onto HEAD (at 11729dc) and it looks like someone else already added rules_pkg as a dist_http_archive dependency, yay! Let's import this.

@ted-xie ted-xie added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-user-response Awaiting a response from the author labels Jan 12, 2023
@ted-xie ted-xie force-pushed the use-remap_paths-to-android_tools branch from 644c0fa to 155531e Compare January 12, 2023 20:16
@ted-xie
Copy link
Contributor

ted-xie commented Jan 12, 2023

I force rebased this PR to HEAD, hopefully the presubmits will pass.

Note to PR importer: Even if the buildkite presubmits fail, please import this, and I"ll resolve any remaining issues internally.

@Bencodes
Copy link
Contributor Author

I force rebased this PR to HEAD, hopefully the presubmits will pass.

Note to PR importer: Even if the buildkite presubmits fail, please import this, and I"ll resolve any remaining issues internally.

Thanks for taking care of that!

@sgowroji sgowroji removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Jan 16, 2023
hvadehra pushed a commit that referenced this pull request Feb 14, 2023
This ensures that the `all_android_tools_deploy.jar` and `ImportDepsChecker_deploy.jar` artifacts end up in the root of the `tar` where `exports_files` is able to reference them.

Before this PR the tar had the following directory structure:
```
  ./
  ./BUILD
  ./WORKSPACE
  ./desugar_jdk_libs.jar
  ./version.txt
  ./src/java_tools/import_deps_checker/java/com/google/devtools/build/importdeps/ImportDepsChecker_deploy.jar
  ./src/tools/android/java/com/google/devtools/build/android/all_android_tools_deploy.jar
```

After:
```
  BUILD
  ImportDepsChecker_deploy.jar
  WORKSPACE
  all_android_tools_deploy.jar
  desugar_jdk_libs.jar
  version.txt
```

Closes #17187.

PiperOrigin-RevId: 501862387
Change-Id: Ida51fa3f0bd3b07d3106653e5292a90cac143b68
pswaminathan pushed a commit to pswaminathan/bazel that referenced this pull request Jun 1, 2023
This ensures that the `all_android_tools_deploy.jar` and `ImportDepsChecker_deploy.jar` artifacts end up in the root of the `tar` where `exports_files` is able to reference them.

Before this PR the tar had the following directory structure:
```
  ./
  ./BUILD
  ./WORKSPACE
  ./desugar_jdk_libs.jar
  ./version.txt
  ./src/java_tools/import_deps_checker/java/com/google/devtools/build/importdeps/ImportDepsChecker_deploy.jar
  ./src/tools/android/java/com/google/devtools/build/android/all_android_tools_deploy.jar
```

After:
```
  BUILD
  ImportDepsChecker_deploy.jar
  WORKSPACE
  all_android_tools_deploy.jar
  desugar_jdk_libs.jar
  version.txt
```

Closes bazelbuild#17187.

PiperOrigin-RevId: 501862387
Change-Id: Ida51fa3f0bd3b07d3106653e5292a90cac143b68
(cherry picked from commit 773cfba)
ahumesky pushed a commit to ahumesky/bazel that referenced this pull request Jul 6, 2023
This ensures that the `all_android_tools_deploy.jar` and `ImportDepsChecker_deploy.jar` artifacts end up in the root of the `tar` where `exports_files` is able to reference them.

Before this PR the tar had the following directory structure:
```
  ./
  ./BUILD
  ./WORKSPACE
  ./desugar_jdk_libs.jar
  ./version.txt
  ./src/java_tools/import_deps_checker/java/com/google/devtools/build/importdeps/ImportDepsChecker_deploy.jar
  ./src/tools/android/java/com/google/devtools/build/android/all_android_tools_deploy.jar
```

After:
```
  BUILD
  ImportDepsChecker_deploy.jar
  WORKSPACE
  all_android_tools_deploy.jar
  desugar_jdk_libs.jar
  version.txt
```

Closes bazelbuild#17187.

PiperOrigin-RevId: 501862387
Change-Id: Ida51fa3f0bd3b07d3106653e5292a90cac143b68
iancha1992 pushed a commit that referenced this pull request Jul 7, 2023
…context … (#18853)

* Teach DexMapper to not separate synthetic classes from their context classes when sharding dexes, like DexFileSplitter in 9092303. Fixes #16368

RELNOTES: None
PiperOrigin-RevId: 546041575
Change-Id: I12fa8cff15b13534ca9a5682b7e9b43e6c860ef8

* Use remap_paths to android_tools

This ensures that the `all_android_tools_deploy.jar` and `ImportDepsChecker_deploy.jar` artifacts end up in the root of the `tar` where `exports_files` is able to reference them.

Before this PR the tar had the following directory structure:
```
  ./
  ./BUILD
  ./WORKSPACE
  ./desugar_jdk_libs.jar
  ./version.txt
  ./src/java_tools/import_deps_checker/java/com/google/devtools/build/importdeps/ImportDepsChecker_deploy.jar
  ./src/tools/android/java/com/google/devtools/build/android/all_android_tools_deploy.jar
```

After:
```
  BUILD
  ImportDepsChecker_deploy.jar
  WORKSPACE
  all_android_tools_deploy.jar
  desugar_jdk_libs.jar
  version.txt
```

Closes #17187.

PiperOrigin-RevId: 501862387
Change-Id: Ida51fa3f0bd3b07d3106653e5292a90cac143b68

* Add rules_pkg to the list of test repositories set up for shell integration tests. Commit b7a79ff depends on this. This is a partial cherrypick of e9929af.

---------

Co-authored-by: Benjamin Lee <[email protected]>
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.

4 participants