Skip to content

Commit

Permalink
Bump Bazel version to 4.2.2
Browse files Browse the repository at this point in the history
Updates build_test.sh to avoid an "Android SDK api level 30 was requested but it is not installed in the Android SDK" error in some environments.

This error only appears when ANDROID_HOME is set - otherwise Bazel ignores the Android SDK, since Closure Compiler doesn't use Android. The root cause is the android_sdk_repository ref in https://github.com/google/bazel-common/blame/master/workspace_defs.bzl which we don't own.

PiperOrigin-RevId: 424633128
  • Loading branch information
lauraharker authored and copybara-github committed Jan 27, 2022
1 parent 92f4cc4 commit f1faba6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.0
4.2.2
4 changes: 4 additions & 0 deletions build_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
# Script that can be used by CI server for testing JsCompiler builds.
set -e

# Avoid a "Android SDK api level 30 was requested but it is not installed" error
# that happens when pulling in https://github.com/google/bazel-common
unset ANDROID_HOME

bazel build :all

# TODO: Run other tests needed for open source verification

0 comments on commit f1faba6

Please sign in to comment.