Skip to content

Commit

Permalink
[drake_bazel_download] Upgrade bazel to 8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jwnimmer-tri committed Oct 25, 2024
1 parent 943a33a commit f5ae1d8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 20 deletions.
4 changes: 1 addition & 3 deletions drake_bazel_download/.bazeliskrc
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# Keep this version number in sync with the Ubuntu deb installed by
# drake/setup/ubuntu/source_distribution/install_bazel.sh.
USE_BAZEL_VERSION=7.0.2
USE_BAZEL_VERSION=8.0.0rc1
14 changes: 3 additions & 11 deletions drake_bazel_download/setup/install_prereqs
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,6 @@ echo -e "\ndrake VERSION.TXT: $(cat /opt/drake/share/doc/drake/VERSION.TXT)\n"

/opt/drake/share/drake/setup/install_prereqs

apt-get install --no-install-recommends gnupg

apt-key adv --fetch-keys https://bazel.build/bazel-release.pub.gpg
echo 'deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8' \
> /etc/apt/sources.list.d/bazel.list

apt-get update
apt-get install --no-install-recommends $(cat <<EOF
bazel
EOF
)
wget -O bazelisk.deb \
https://github.com/bazelbuild/bazelisk/releases/download/v1.22.1/bazelisk-amd64.deb
dpkg -i bazelisk.deb
1 change: 1 addition & 0 deletions drake_bazel_external/.bazeliskrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
USE_BAZEL_VERSION=8.0.0rc1
9 changes: 3 additions & 6 deletions drake_bazel_external/setup/install_prereqs
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,12 @@ echo -e "\ndrake VERSION.TXT: $(cat /opt/drake/share/doc/drake/VERSION.TXT)\n"

/opt/drake/share/drake/setup/install_prereqs

apt-get install --no-install-recommends gnupg

apt-key adv --fetch-keys https://bazel.build/bazel-release.pub.gpg
echo 'deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8' \
> /etc/apt/sources.list.d/bazel.list
wget -O bazelisk.deb \
https://github.com/bazelbuild/bazelisk/releases/download/v1.22.1/bazelisk-amd64.deb
dpkg -i bazelisk.deb

apt-get update
apt-get install --no-install-recommends $(cat <<EOF
bazel
cmake
default-jdk
file
Expand Down
4 changes: 4 additions & 0 deletions private/test/file_sync_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
"drake_cmake_installed/LICENSE",
"drake_cmake_installed_apt/LICENSE",
),
(
"drake_bazel_download/.bazeliskrc",
"drake_bazel_external/.bazeliskrc",
),
(
"drake_bazel_external/.github/setup",
"drake_cmake_external/.github/setup",
Expand Down

0 comments on commit f5ae1d8

Please sign in to comment.