Skip to content

Commit

Permalink
Update external dependencies mockito and byte-buddy (#151)
Browse files Browse the repository at this point in the history
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 mockito/mockito#1879 for a similar issue
reported, and bazelbuild/bazel#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 <[email protected]>
  • Loading branch information
saraadams authored Dec 4, 2023
1 parent ea82082 commit 1328f52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 3 additions & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 1328f52

Please sign in to comment.