bazel_5: use correct bazel version for tests
`bazel_self` is the current package. If we do not specify it explicitly when defining tests then Bazel 3 is used by default.
This commit is contained in:
parent
384035c4cf
commit
c6909daf0e
@ -285,13 +285,13 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
in (if !stdenv.hostPlatform.isDarwin then {
|
in (if !stdenv.hostPlatform.isDarwin then {
|
||||||
# `extracted` doesn’t work on darwin
|
# `extracted` doesn’t work on darwin
|
||||||
shebang = callPackage ../shebang-test.nix { inherit runLocal extracted bazelTest distDir; };
|
shebang = callPackage ../shebang-test.nix { inherit runLocal extracted bazelTest distDir; bazel = bazel_self;};
|
||||||
} else {}) // {
|
} else {}) // {
|
||||||
bashTools = callPackage ../bash-tools-test.nix { inherit runLocal bazelTest distDir; };
|
bashTools = callPackage ../bash-tools-test.nix { inherit runLocal bazelTest distDir; bazel = bazel_self;};
|
||||||
cpp = callPackage ../cpp-test.nix { inherit runLocal bazelTest bazel-examples distDir; };
|
cpp = callPackage ../cpp-test.nix { inherit runLocal bazelTest bazel-examples distDir; bazel = bazel_self;};
|
||||||
java = callPackage ../java-test.nix { inherit runLocal bazelTest bazel-examples distDir; };
|
java = callPackage ../java-test.nix { inherit runLocal bazelTest bazel-examples distDir; bazel = bazel_self;};
|
||||||
protobuf = callPackage ../protobuf-test.nix { inherit runLocal bazelTest distDir; };
|
protobuf = callPackage ../protobuf-test.nix { inherit runLocal bazelTest distDir; bazel = bazel_self; };
|
||||||
pythonBinPath = callPackage ../python-bin-path-test.nix { inherit runLocal bazelTest distDir; };
|
pythonBinPath = callPackage ../python-bin-path-test.nix { inherit runLocal bazelTest distDir; bazel = bazel_self;};
|
||||||
|
|
||||||
bashToolsWithNixHacks = callPackage ../bash-tools-test.nix { inherit runLocal bazelTest distDir; bazel = bazelWithNixHacks; };
|
bashToolsWithNixHacks = callPackage ../bash-tools-test.nix { inherit runLocal bazelTest distDir; bazel = bazelWithNixHacks; };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user