No GPG found when building Swift
xis19 opened this issue · 0 comments
xis19 commented
This step occasionally fails for unknown reasons. Rebuilding everything sometimes fixes the issue for unknown reasons.
Step 47/48 : RUN if [ ! "$(uname -m)" == "aarch64" ]; then set -e; export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download:' | sed 's/:[^:\/\/]/=/g') && export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download_signature:' | sed 's/:[^:\/\/]/=/g') && export DOWNLOAD_DIR=$(echo $download | sed "s/-${OS_VER}.tar.gz//g") && echo $DOWNLOAD_DIR > .swift_tag && export GNUPGHOME="$(mktemp -d)" && curl -fL ${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download} -o latest_toolchain.tar.gz ${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download_signature} -o latest_toolchain.tar.gz.sig && curl -fL https://swift.org/keys/all-keys.asc | gpg --import - && gpg --batch --verify latest_toolchain.tar.gz.sig latest_toolchain.tar.gz && tar -xzf latest_toolchain.tar.gz --directory / --strip-components=1 && chmod -R o+r /usr/lib/swift && rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz; fi
---> Running in a158ee48729a
�[91m % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0�[0m�[91m
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0�[0m�[91m
1 612M 1 11.2M 0 0 9242k 0 0:01:07 0:00:01 0:01:06 9241�[0m�[91mk�[0m�[91m
6 612M 6 39.6M 0 0 17.6M 0 0:0�[0m�[91m0:34 0:00:02 0:00:�[0m�[91m32 17.6M�[0m�[91m
11 612M 11 68.2M 0 0 21.0M 0 0:00:29 0:00:03 0:00:26 21.0M�[0m�[91m
15 612M 15 97.1M 0 0 22.8M 0 0:00:26 0:00:04 0:00:22 22.�[0m�[91m8M�[0m�[91m
20 612M 20 126M 0 0 24.1M 0 0:00:25 0:00:05 0:00:20�[0m�[91m 25.5M�[0m�[91m
25 612M 25 156M 0 0 25.0M 0 0:00:24 0:00:06 0:00:18 29.0M�[0m�[91m
30 612M 30 187M 0 0 25.8M 0 0:00:23 0:0�[0m�[91m0:07 0:00:16 29.4M�[0m�[91m
35 612M 35 218M 0 0 26.4M 0 0:00:23�[0m�[91m 0:00:08 0:00:15 29.9M�[0m�[91m
40 612M 40 249M 0 0 26.9M 0 0:00:22 0:00:09 0:00:13 30.5M�[0m�[91m
45 612M 45 281M 0 0 27.4M 0 0:00:22�[0m�[91m 0:00:10 0:00�[0m�[91m:12 30.9M�[0m�[91m
51 612M 51 313M 0 0 27.8M 0 0:00:21 0:00:1�[0m�[91m1 0:00:10 31.3M�[0m�[91m
56 612M 56 346M 0 0 28.2M 0 0:00:21 0:00:12 0:00:09 31.8M�[0m�[91m
62 612M 62 380M 0 0 28.7M 0 0:00:21 0:00:13 0:00:08 32.4M�[0m�[91m
67 612M 67 414M 0 0 29.1M 0 0:00:21 0:00:14 0:00:07 33.0M�[0m�[91m
73 612M 73 450M 0 0 29.5M 0 0:00:20 0:00:15 0:00:05 33.9M�[0m�[91m
79 612M 79 487M 0 0 29.9M 0 0:00:20 0:00:16 0:00:04 34.8M�[0m�[91m
85 612M 85 525M 0 0 30.4M 0 0:00:20 0:00:17 0:00:03 35.9M�[0m�[91m
92 612M 92 565M 0 0 30.9M 0 0:00:�[0m�[91m19 0:00:18 0:00:01 37�[0m�[91m.0M�[0m�[91m
99 612M 99 606M 0 0 31.5M 0 0:00:19 0:00:1�[0m�[91m9 --:--:-- 38.3M�[0m�[91m
100 612M 100 612M 0 0 31.5M 0 0:00:19 0:00:19 --:--:-- 39.1M
�[0m�[91m
100 833 100 833 0 0 4881 0 --:--:-- --:--:-- --:--:-- 4881
�[0m�[91m % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
�[0m�[91m
0 0 0 0 0�[0m�[91m 0 0 �[0m�[91m 0 -�[0m�[91m-:--:--�[0m�[91m --:--:�[0m�[91m-- --:�[0m�[91m--:-- �[0m�[91m 0�[0m�[91mgpg: keyring `/tmp/tmp.aNUBOk4shq/secring.gpg' created
�[0m�[91mgpg: keyring `/tmp/tmp.aNUBOk4shq/pubring.gpg' created
�[0m�[91m
100 257 100 257 0 0 1492 0 �[0m�[91m--:--:-- --:--:-�[0m�[91m- --:--�[0m�[91m:-- 1494�[0m�[91m
�[0m�[91m
0 9845 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0�[0m�[91m
100 9845 100 9845 0 0 12527 0 --:--:-- --:--:-- --:--:-- 2403k
�[0m�[91mgpg: no valid OpenPGP data found.
gpg: Total number processed: 0
�[0mThe command '/bin/sh -c if [ ! "$(uname -m)" == "aarch64" ]; then set -e; export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download:' | sed 's/:[^:\/\/]/=/g') && export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download_signature:' | sed 's/:[^:\/\/]/=/g') && export DOWNLOAD_DIR=$(echo $download | sed "s/-${OS_VER}.tar.gz//g") && echo $DOWNLOAD_DIR > .swift_tag && export GNUPGHOME="$(mktemp -d)" && curl -fL ${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download} -o latest_toolchain.tar.gz ${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download_signature} -o latest_toolchain.tar.gz.sig && curl -fL https://swift.org/keys/all-keys.asc | gpg --import - && gpg --batch --verify latest_toolchain.tar.gz.sig latest_toolchain.tar.gz && tar -xzf latest_toolchain.tar.gz --directory / --strip-components=1 && chmod -R o+r /usr/lib/swift && rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz; fi' returned a non-zero code: 2