Skip to content

Commit fa12558

Browse files
author
MarcoFalke
committed
ci: Avoid leaking HOME var into CI pod
This will lead to a duplicate install, see bitcoin/bitcoin#27739 (comment)
1 parent aaaa432 commit fa12558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/test/04_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export BINS_SCRATCH_DIR="${BASE_SCRATCH_DIR}/bins/"
2828
if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
2929
# Export all env vars to avoid missing some.
3030
# Though, exclude those with newlines to avoid parsing problems.
31-
python3 -c 'import os; [print(f"{key}={value}") for key, value in os.environ.items() if "\n" not in value]' | tee /tmp/env
31+
python3 -c 'import os; [print(f"{key}={value}") for key, value in os.environ.items() if "\n" not in value and "HOME" not in key]' | tee /tmp/env
3232
echo "Creating $CI_IMAGE_NAME_TAG container to run in"
3333
DOCKER_BUILDKIT=1 ${CI_RETRY_EXE} docker build \
3434
--file "${BASE_ROOT_DIR}/ci/test_imagefile" \

0 commit comments

Comments
 (0)