bazel: fix sandbox execution
Bazel runs actions in a sandbox by default on Darwin and Linux. However, the sandboxing was always and *silently* disabled previously, because a Bazel feature test was always failing. The feature test involved running `/bin/true` inside a sandbox. But on NixOS, `/bin/true` does not exist...
This commit is contained in:
parent
a5a537d515
commit
53e8258a45
1 changed files with 2 additions and 1 deletions
|
@ -119,7 +119,8 @@ stdenv.mkDerivation rec {
|
|||
find src/main/java/com/google/devtools -type f -print0 | while IFS="" read -r -d "" path; do
|
||||
substituteInPlace "$path" \
|
||||
--replace /bin/bash ${customBash}/bin/bash \
|
||||
--replace /usr/bin/env ${coreutils}/bin/env
|
||||
--replace /usr/bin/env ${coreutils}/bin/env \
|
||||
--replace /bin/true ${coreutils}/bin/true
|
||||
done
|
||||
# Fixup scripts that generate scripts. Not fixed up by patchShebangs below.
|
||||
substituteInPlace scripts/bootstrap/compile.sh \
|
||||
|
|
Loading…
Reference in a new issue