From 0fa060b5c404a7849b5d755e82b4843678edb834 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Raynaud Date: Thu, 16 Jul 2026 18:49:49 +0200 Subject: [PATCH 1/2] Mithril: Follow redirects when resolving latest release Add -L to the curl resolving the latest release in guild-deploy.sh, future proofing against upcoming URL updates served through redirects. --- scripts/cnode-helper-scripts/guild-deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cnode-helper-scripts/guild-deploy.sh b/scripts/cnode-helper-scripts/guild-deploy.sh index d3b133a4c..98f98ed96 100644 --- a/scripts/cnode-helper-scripts/guild-deploy.sh +++ b/scripts/cnode-helper-scripts/guild-deploy.sh @@ -797,7 +797,7 @@ download_mithril() { [[ -z ${ARCH##*aarch64*} ]] && mthrl_arch="arm64" || mthrl_arch="x64" pushd "${HOME}"/tmp >/dev/null || err_exit "Could not enter temporary directory: ${HOME}/tmp" log_progress "Resolving Mithril release" - mithril_release="$(curl -s https://api.github.com/repos/input-output-hk/mithril/releases/latest | jq -r '.tag_name' 2>/dev/null)" + mithril_release="$(curl -sL https://api.github.com/repos/input-output-hk/mithril/releases/latest | jq -r '.tag_name' 2>/dev/null)" [[ -n "${mithril_release}" && "${mithril_release}" != "null" ]] || err_exit "Could not resolve Mithril release from GitHub." log_progress "Downloading Mithril signer/client" "${mithril_release}" rm -f mithril-signer mithril-client From 88687d689008a3aed1046cf431ae561ad754dc05 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Raynaud Date: Thu, 16 Jul 2026 18:49:50 +0200 Subject: [PATCH 2/2] Mithril: Follow redirects when fetching networks.json Add -L to the curl fetching networks.json in mithril.library, future proofing against upcoming URL updates served through redirects. --- scripts/cnode-helper-scripts/mithril.library | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cnode-helper-scripts/mithril.library b/scripts/cnode-helper-scripts/mithril.library index a9afd71cf..087e94538 100644 --- a/scripts/cnode-helper-scripts/mithril.library +++ b/scripts/cnode-helper-scripts/mithril.library @@ -219,7 +219,7 @@ check_mithril_upgrade_safe() { set_node_minimum_version() { response_file=$(mktemp) - status_code=$(curl -s -o "$response_file" -w "%{http_code}" https://raw.githubusercontent.com/input-output-hk/mithril/${MITHRIL_LATEST_VERSION}/networks.json) + status_code=$(curl -sL -o "$response_file" -w "%{http_code}" https://raw.githubusercontent.com/input-output-hk/mithril/${MITHRIL_LATEST_VERSION}/networks.json) if [[ "${status_code}" -gt 200 ]]; then echo "ERROR: Failed to download the networks.json file from the mithril repository! curl status code: ${status_code}."