···307307 ''
308308 # Bazel needs a real home for self-extraction and internal cache
309309 export HOME=$(mktemp -d)
310310- export USER=$(basename $HOME)
311310312311 ${# Concurrent bazel invocations have the same workspace path.
313313- # On darwin, for some reason, it means they accessing and corrupting the same execroot.
312312+ # On darwin, for some reason, it means they access and corrupt the same execroot.
314313 # Having a different workspace path ensures we use different execroots.
314314+ # A different user seems to be enough for a different bazel cache root.
315315 lib.optionalString isDarwin ''
316316+ export USER=$(basename $HOME)
316317 # cd $(mktemp --tmpdir=. -d)
317318 ''
318319 }