From d1166c1906115233b64e977b26cac999645aca27 Mon Sep 17 00:00:00 2001 From: Jeremy Nimmer Date: Fri, 29 Sep 2023 14:12:25 -0700 Subject: [PATCH] [doc] Bump Bazel minimum version to 5.1 This was already true in practice; our docs just missed it. --- CMakeLists.txt | 2 +- WORKSPACE | 2 +- doc/_release-notes/v1.21.0.md | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2aa5cf09f8f5..3b91e1ea281f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,7 +106,7 @@ endif() # The version passed to find_package(Bazel) should match the # minimum_bazel_version value in the call to versions.check() in WORKSPACE. -set(MINIMUM_BAZEL_VERSION 4.0) +set(MINIMUM_BAZEL_VERSION 5.1) find_package(Bazel ${MINIMUM_BAZEL_VERSION} MODULE) if(NOT Bazel_FOUND) set(Bazel_EXECUTABLE "${PROJECT_SOURCE_DIR}/third_party/com_github_bazelbuild_bazelisk/bazelisk.py") diff --git a/WORKSPACE b/WORKSPACE index 263029586c7f..4812eca8c2dc 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -24,7 +24,7 @@ load("@bazel_skylib//lib:versions.bzl", "versions") # This needs to be in WORKSPACE or a repository rule for native.bazel_version # to actually be defined. The minimum_bazel_version value should match the # version passed to the find_package(Bazel) call in the root CMakeLists.txt. -versions.check(minimum_bazel_version = "4.0") +versions.check(minimum_bazel_version = "5.1") # The cargo_universe programs are only used by Drake's new_release tooling, not # by any compilation rules. As such, we can put it directly into the WORKSPACE diff --git a/doc/_release-notes/v1.21.0.md b/doc/_release-notes/v1.21.0.md index 7f4cd90b03b0..2b35e1790316 100644 --- a/doc/_release-notes/v1.21.0.md +++ b/doc/_release-notes/v1.21.0.md @@ -24,6 +24,7 @@ released: 2023-09-14 to the upgrade. Refer to [#20144][_#20144] for further discussion. * On macOS, when building Drake from source as a bazel external, you must not have ``build --force_pic`` in your ``.bazelrc`` file ([#20217][_#20217]). + * Drake's minimum compatible Bazel verison has increased to ``bazel >= 5.1``. * CMake users no longer need to install Bazel when building Drake from source ([#20064][_#20064]). @@ -153,6 +154,7 @@ Fixes * CMake users no longer need to install Bazel before building Drake from source. * Provide install_prereqs opt-in/opt-out flags for installing Bazel on Ubuntu ([#20046][_#20046]) * Fix model_visualizer --show_rgbd_sensor ([#20112][_#20112]) +* Drake's minimum compatible Bazel verison has increased to ``bazel >= 5.1`` ([#19945][_#19945]) ## Build dependencies