commit | 4be62ff8c6a3033979db7f065380c2453a2126b7 | [log] [tgz] |
---|---|---|
author | Alix <agespino@google.com> | Wed Nov 01 18:30:32 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Nov 01 18:30:32 2023 +0000 |
tree | 8f090c6e85515861dadf07133d70e7d829f38aad | |
parent | 0be4f9735929e762a973d1c0f683bc86ed1a2059 [diff] | |
parent | 0d53ab9a49c66acc48efa749a0fba8f10ec2f389 [diff] |
Remove errorprone logic from update_tools.bzl am: dcbca48964 am: f2b8ff6b63 am: 0d53ab9a49 Original change: https://android-review.googlesource.com/c/platform/prebuilts/bazel/common/+/2805755 Change-Id: Ia71f1310d6aa0a7c335b4faad14aa4556e262acf Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
First, decide which version of Bazel you need.
Whichever of these you use, you will need to use official nojdk x86-64 versions of Bazel, for Linux and macOS (Darwin).
Run the release_bazel.py
script in the root repository to download and verify the binaries from the trusted Bazel CI pipeline:
python /prebuilts/bazel/common/release_bazel.py --commit <commit>
To get the commit hash for builds, see the [Bazel releases], [Bazel nightlies] or [Bazel per-commit builds] sections below.
this will run update.sh
which will also:
Once you have the binaries, you will need to create and send up to three CLs, to update the Linux, macOS, and platform-agnostic prebuilts that live in separate Git repositories, i.e.
The update script does not automatically create CLs, so you need to create them manually. In each CL description, mention the testing you did, which should at least include:
gpg --import bazel-release.pub.gpg
gpg --verify bazel_nojdk-<commit>-linux-x86_64.sig
source build/envsetup.sh
bazel info
Ensure that the CLs are set to the same Gerrit topic so they are submitted together.
The update.sh
script automates downloading Bazel binaries. The next sections describe how the different Bazel binaries (release, nightly, per-commit) can be manually downloaded from the Bazel CI.
The commit hash for linux and darwin nojdk x86-64 binaries are available from https://github.com/bazelbuild/bazel/releases
The commit hash and urls for linux and macOS nojdk x86-64 binaries are available in https://storage.googleapis.com/bazel-builds/metadata/latest.json
You need to know the GitHub commit that contains your change, e.g. https://github.com/bazelbuild/bazel/commit/364a867df255c57c8edc4a8aae8f78cb54900a54
And the linux and macOS nojdk x86-64 binaries are available from:
https://storage.googleapis.com/bazel-builds/metadata/<commit>.json