From 1328f52199f07755351e99166fa12b23bc59d1a9 Mon Sep 17 00:00:00 2001 From: Sara Adams <4410333+saraadams@users.noreply.github.com> Date: Mon, 4 Dec 2023 12:22:52 +0100 Subject: [PATCH] Update external dependencies mockito and byte-buddy (#151) The Bazel flag `--incompatible_sandbox_hermetic_tmp` is added to fix some issues with `mockito-core` and `byte-buddy`, e.g. see https://github.com/EngFlow/bazel_invocation_analyzer/actions/runs/7067252322/job/19240379595?pr=151 See https://github.com/mockito/mockito/issues/1879 for a similar issue reported, and https://github.com/bazelbuild/bazel/issues/3236 for the "fix" by specifying `--incompatible_sandbox_hermetic_tmp`. Note that this flag will be set to true by default with Bazel 7, which is expected to be released next week. --------- Signed-off-by: Sara Adams --- .bazelrc | 3 +++ MODULE.bazel | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.bazelrc b/.bazelrc index a2afba7..533c47f 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,4 +1,7 @@ +# TODO: Remove once using Bazel 7 common --enable_bzlmod +build --incompatible_sandbox_hermetic_tmp + common --enable_platform_specific_config common --experimental_announce_profile_path diff --git a/MODULE.bazel b/MODULE.bazel index 15e8fb1..cd5ab0d 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -27,10 +27,10 @@ maven.install( "com.google.truth.extensions:truth-java8-extension:1.1.5", "commons-cli:commons-cli:1.6.0", "junit:junit:4.13.2", - "net.bytebuddy:byte-buddy-agent:1.12.13", - "net.bytebuddy:byte-buddy:1.12.13", + "net.bytebuddy:byte-buddy-agent:1.14.10", + "net.bytebuddy:byte-buddy:1.14.10", "org.hamcrest:hamcrest-core:2.2", - "org.mockito:mockito-core:4.6.1", + "org.mockito:mockito-core:5.7.0", "org.objenesis:objenesis:3.3", ], repositories = [