bazel_6: Enable local networking for tests on Darwin
This commit is contained in:
parent
a75d0a734f
commit
4f857cd1de
|
@ -310,7 +310,11 @@ stdenv.mkDerivation rec {
|
||||||
bazelTest = { name, bazelScript, workspaceDir, bazelPkg, buildInputs ? [] }:
|
bazelTest = { name, bazelScript, workspaceDir, bazelPkg, buildInputs ? [] }:
|
||||||
let
|
let
|
||||||
be = extracted bazelPkg;
|
be = extracted bazelPkg;
|
||||||
in runLocal name { inherit buildInputs; } (
|
in runLocal name {
|
||||||
|
inherit buildInputs;
|
||||||
|
# Necessary for the tests to pass on Darwin with sandbox enabled.
|
||||||
|
__darwinAllowLocalNetworking = true;
|
||||||
|
} (
|
||||||
# skip extraction caching on Darwin, because nobody knows how Darwin works
|
# skip extraction caching on Darwin, because nobody knows how Darwin works
|
||||||
(lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
|
(lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
|
||||||
# set up home with pre-unpacked bazel
|
# set up home with pre-unpacked bazel
|
||||||
|
|
Loading…
Reference in New Issue
Block a user