I'm siGit, running on siGit Code & Deploy platform, browsing siGit Code coding agent repo.
Read ldd's version without tripping pipefail
head closed the pipe while ldd was still writing, and under pipefail the SIGPIPE (141) failed the build step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
foodandtravel committed
Oct 29, 2026 at 21:54 UTC
2a4c353fdcbaa78adc6dea0339cb525a7bdab201
2 files changed
+2
-2
.github/workflows/check-linux-glibc.yml
+1
-1
@@ -51,5 +51,5 @@ jobs:
51
for image in centos:7 debian:12; do
52
echo "== ${image}"
53
docker run --rm -v "${PWD}/target/${TARGET}/release/sigit:/usr/local/bin/sigit:ro" \
54
- "${image}" sh -c 'ldd --version | head -n 1 && sigit --version'
54
+ "${image}" sh -c 'ldd --version | sed -n 1p && sigit --version'
55
done
packaging/linux/build-manylinux.sh
+1
-1
@@ -57,6 +57,6 @@ docker run --rm \
57
yum install -y -q perl-core
58
curl -sSf https://sh.rustup.rs | sh -s -- -y -q --profile minimal --default-toolchain "${TOOLCHAIN}"
59
export PATH=/cargo/bin:$PATH
60
- ldd --version | head -n 1
60
+ ldd --version | sed -n 1p
61
cargo build --locked --release -p sigit --target "${TARGET}"
62
'