Skip to content

Bazel 8 Migration - Workspace Reordering & Patches Registration#209

Open
edwin-grabtaxi wants to merge 2 commits intomigration/bazel_8_main_branchfrom
migration/bazel_8_workspace_reordering
Open

Bazel 8 Migration - Workspace Reordering & Patches Registration#209
edwin-grabtaxi wants to merge 2 commits intomigration/bazel_8_main_branchfrom
migration/bazel_8_workspace_reordering

Conversation

@edwin-grabtaxi
Copy link
Collaborator

Workspace Reordering

As part of Bazel externalization, android tools are migrated to rules_android. In order to load rules_android, it has to call rules_android_prereqs(). Inside that prereqs, it will call its android_tools that contains some jars, including all_android_tools_deploy.jar and other jars.

With the old WORKSPACE setup, our android_tools will be called via bazel_common_setup, in which it'll be superseded by the rules_android's. The changes is to reorder WORSKPACE so our jars get called first and grab-bazel-common will use our patched tools.

Changes:

  1. Created prereqs.bzl. Put the android_tools() calls there before rules_android_prereqs get called.
  2. Added some necessary calls for rules_android

Patches Registration

  • Added some rules_android's patches to BUILD.bzl so it can be visible to repositories
  • Include the patches in rules_android's http load in repositories.bzl

@edwin-grabtaxi edwin-grabtaxi changed the title Migration/bazel 8 workspace reordering Bazel 8 Migration - Workspace Reordering & Patches Registration Feb 22, 2026
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.

1 participant