Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ jobs:
set -euo pipefail
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends mold gdal-bin
curl -fsSLo "$RUNNER_TEMP/duckdb.tar.gz" \
curl -fsSL --retry 5 --retry-all-errors -o "$RUNNER_TEMP/duckdb.tar.gz" \
"https://github.com/duckdb/duckdb/releases/download/v$DUCKDB_VERSION/duckdb-cli-linux-amd64.tar.gz"
echo "$DUCKDB_SHA256 $RUNNER_TEMP/duckdb.tar.gz" | sha256sum -c -
mkdir "$RUNNER_TEMP/duckdb"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mobile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
run: |
set -euo pipefail
jar="$RUNNER_TEMP/bundletool.jar"
curl -fsSL -o "$jar" "https://github.com/google/bundletool/releases/download/$BUNDLETOOL_VERSION/bundletool-all-$BUNDLETOOL_VERSION.jar"
curl -fsSL --retry 5 --retry-all-errors -o "$jar" "https://github.com/google/bundletool/releases/download/$BUNDLETOOL_VERSION/bundletool-all-$BUNDLETOOL_VERSION.jar"
echo "$BUNDLETOOL_SHA256 $jar" | sha256sum -c -
echo "BUNDLETOOL=$jar" >> "$GITHUB_ENV"

Expand Down Expand Up @@ -466,7 +466,7 @@ jobs:
security create-keychain -p "$pass" "$keychain"
security set-keychain-settings -lut 21600 "$keychain"
security unlock-keychain -p "$pass" "$keychain"
curl -fsSL -o "$RUNNER_TEMP/wwdr.cer" "$WWDR_URL"
curl -fsSL --retry 5 --retry-all-errors -o "$RUNNER_TEMP/wwdr.cer" "$WWDR_URL"
echo "$WWDR_SHA256 $RUNNER_TEMP/wwdr.cer" | shasum -a 256 -c -
security import "$RUNNER_TEMP/wwdr.cer" -k "$keychain"
printf '%s' "$CERTIFICATE_BASE64" | base64 --decode > "$RUNNER_TEMP/dist.p12"
Expand Down
2 changes: 1 addition & 1 deletion packaging/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ SPEC
esac
if [ -n "$tool_sha" ]; then
fetch() { # url sha out
curl -fsSL --retry 3 -o "$3" "$1"
curl -fsSL --retry 5 --retry-all-errors -o "$3" "$1"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This script runs on developers' machines as well as in CI, and --retry-all-errors needs curl 7.71 or newer. On an older curl the flag is rejected and set -e stops the packaging run, where the old --retry 3 worked everywhere. The workflows already use this flag on Ubuntu runners, so it's safe in CI. If you want older local setups to keep working, you could fall back to --retry 5 when curl --version is older. The checksum check still runs after the download, so nothing is unverified. This is a minor compatibility point, not a correctness issue.

Category: quality

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No fallback: only the Linux AppImage step uses it, and the release builds it on Ubuntu 22.04, which has curl 7.81. Version 7.71 is from June 2020. Left for the release quality pass if an older setup needs it.

Comment thread
Mavrick-F marked this conversation as resolved.
Resolved
echo "$2 $3" | sha256sum -c --quiet -
}
t="$work/appimage-tools"
Expand Down
Loading