Skip to content

5.0 rc3 plus ptarjan fix

Compare
Choose a tag to compare
@alexeagle alexeagle released this 16 Dec 00:24

Based on the bazelbuild/bazel 5.0.0rc3 branch
https://github.com/bazelbuild/bazel/commits/release-5.0.0rc3

This is released from the aspect-5.0.0rc3 branch in this repo.
Therefore the delta between the upstream Bazel release and ours is
bazelbuild/bazel@release-5.0.0rc3...aspect-build:aspect-5.0.0rc3

We do this because our clients need some fixes and cannot wait for the long journey of getting Google to merge changes and release them.

Built with
bazelbuild/continuous-integration#1290
as the base image -> docker.io/library/bazel:4.2.2

then built using the following script

#!/bin/bash

set -o errexit -o nounset -o pipefail

git_root="$(git rev-parse --show-toplevel)"
out_dir="/tmp/bazel_build_output"
executable_name="bazel-5.0.0rc3-linux-x86_64"

mkdir -p "${out_dir}"

rm -rf "${executable_name}"
rm -rf "${executable_name}.sha256"

docker_args=(
    --volume="${git_root}":/workspace/bazel
    --volume="${out_dir}:${out_dir}"
    --volume=/var/run/docker.sock:/var/run/docker.sock
    --volume="${HOME}/.npm:/home/.npm"
    --workdir=/workspace/bazel
    --publish=3000:3000
)

docker run "${docker_args[@]}" -i --rm --entrypoint=/bin/bash --user=root bazel:4.2.2 <<EOF
apt-get install --yes software-properties-common
add-apt-repository ppa:openjdk-r/ppa
apt-get update
apt-get install --yes openjdk-11-jdk
su ubuntu
bazel --output_user_root="${out_dir}" build -c opt --stamp src:bazel --embed_label 5.0.0rc3
EOF

cp "${out_dir}/"**"/execroot/io_bazel/bazel-out/k8-opt/bin/src/bazel" "${executable_name}"
shasum -a 256 "${executable_name}" > "${executable_name}.sha256"