mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00
Merge pull request #43503 from volth/bazel-private-tmp
bazel: use per-user tmp directory to avoid conflict with other builders
This commit is contained in:
commit
4a35e7ef1d
@ -65,8 +65,9 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
export TMPDIR=/tmp/.bazel-$UID
|
||||||
./compile.sh
|
./compile.sh
|
||||||
./output/bazel --output_user_root=/tmp/.bazel build //scripts:bash_completion \
|
./output/bazel --output_user_root=$TMPDIR/.bazel build //scripts:bash_completion \
|
||||||
--spawn_strategy=standalone \
|
--spawn_strategy=standalone \
|
||||||
--genrule_strategy=standalone
|
--genrule_strategy=standalone
|
||||||
cp bazel-bin/scripts/bazel-complete.bash output/
|
cp bazel-bin/scripts/bazel-complete.bash output/
|
||||||
|
@ -96,9 +96,9 @@ stdenv.mkDerivation rec {
|
|||||||
# Change this to $(mktemp -d) as soon as we figure out why.
|
# Change this to $(mktemp -d) as soon as we figure out why.
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
export TMPDIR=/tmp
|
export TMPDIR=/tmp/.bazel-$UID
|
||||||
./compile.sh
|
./compile.sh
|
||||||
./output/bazel --output_user_root=/tmp/.bazel build //scripts:bash_completion \
|
./output/bazel --output_user_root=$TMPDIR/.bazel build //scripts:bash_completion \
|
||||||
--spawn_strategy=standalone \
|
--spawn_strategy=standalone \
|
||||||
--genrule_strategy=standalone
|
--genrule_strategy=standalone
|
||||||
cp bazel-bin/scripts/bazel-complete.bash output/
|
cp bazel-bin/scripts/bazel-complete.bash output/
|
||||||
|
Loading…
Reference in New Issue
Block a user