From b4452de8ebdfbb690f514dee0fe14387dae12d5c Mon Sep 17 00:00:00 2001 From: Dan Barr <6922515+danbarr@users.noreply.github.com> Date: Wed, 17 Sep 2025 20:52:15 -0400 Subject: [PATCH 1/3] Temporary fix for new early exit behavior in thv Signed-off-by: Dan Barr <6922515+danbarr@users.noreply.github.com> --- scripts/install-thv.sh | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/scripts/install-thv.sh b/scripts/install-thv.sh index b9553324..81272e2f 100755 --- a/scripts/install-thv.sh +++ b/scripts/install-thv.sh @@ -13,23 +13,28 @@ if ! command -v jq >/dev/null 2>&1; then exit 1 fi -API_ENDPOINT="https://api.github.com/repos/stacklok/toolhive/releases/latest" +#API_ENDPOINT="https://api.github.com/repos/stacklok/toolhive/releases/latest" # Fetch release information -RELEASE_JSON=$(curl -sf "$API_ENDPOINT" || { - echo "Failed to fetch release information from GitHub API" - exit 1 -}) -RELEASE_VERSION=$(echo "$RELEASE_JSON" | jq -r '.tag_name // empty' | sed 's/^v//') -RELEASE_TARBALL=$(echo "$RELEASE_JSON" | jq -r \ - --arg version "$RELEASE_VERSION" \ - '.assets[] | select(.name == "toolhive_" + $version + "_linux_amd64.tar.gz") | .browser_download_url // empty') +#RELEASE_JSON=$(curl -sf "$API_ENDPOINT" || { +# echo "Failed to fetch release information from GitHub API" +# exit 1 +#}) +#RELEASE_VERSION=$(echo "$RELEASE_JSON" | jq -r '.tag_name // empty' | sed 's/^v//') +#RELEASE_TARBALL=$(echo "$RELEASE_JSON" | jq -r \ +# --arg version "$RELEASE_VERSION" \ +# '.assets[] | select(.name == "toolhive_" + $version + "_linux_amd64.tar.gz") | .browser_download_url // empty') -if [ -z "$RELEASE_TARBALL" ]; then - echo "Failed to get release tarball URL for release: ${RELEASE_VERSION}" - echo "Please check if the tag exists in the repository" - exit 1 -fi +#if [ -z "$RELEASE_TARBALL" ]; then +# echo "Failed to get release tarball URL for release: ${RELEASE_VERSION}" +# echo "Please check if the tag exists in the repository" +# exit 1 +#fi + +# Temporary fix for early exit if container runtime isn't found + +RELEASE_VERSION="v0.2.9" +RELEASE_TARBALL="https://github.com/stacklok/toolhive/releases/download/v0.2.9/toolhive_0.2.9__linux_amd64.tar.gz" # Determine installation location based on write permissions if [[ -w "/usr/local/bin" ]]; then From a488410e84b78d0e09579dc1aeb7ad98a72b71ba Mon Sep 17 00:00:00 2001 From: Dan Barr <6922515+danbarr@users.noreply.github.com> Date: Wed, 17 Sep 2025 20:54:14 -0400 Subject: [PATCH 2/3] Fix URL Signed-off-by: Dan Barr <6922515+danbarr@users.noreply.github.com> --- scripts/install-thv.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install-thv.sh b/scripts/install-thv.sh index 81272e2f..205f6149 100755 --- a/scripts/install-thv.sh +++ b/scripts/install-thv.sh @@ -34,7 +34,7 @@ fi # Temporary fix for early exit if container runtime isn't found RELEASE_VERSION="v0.2.9" -RELEASE_TARBALL="https://github.com/stacklok/toolhive/releases/download/v0.2.9/toolhive_0.2.9__linux_amd64.tar.gz" +RELEASE_TARBALL="https://github.com/stacklok/toolhive/releases/download/v0.2.9/toolhive_0.2.9_linux_amd64.tar.gz" # Determine installation location based on write permissions if [[ -w "/usr/local/bin" ]]; then From 121640359fffe6306aa246f93e0a9521688bc7a6 Mon Sep 17 00:00:00 2001 From: Dan Barr <6922515+danbarr@users.noreply.github.com> Date: Wed, 17 Sep 2025 21:07:59 -0400 Subject: [PATCH 3/3] Fix version Signed-off-by: Dan Barr <6922515+danbarr@users.noreply.github.com> --- scripts/install-thv.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install-thv.sh b/scripts/install-thv.sh index 205f6149..e20a6fbc 100755 --- a/scripts/install-thv.sh +++ b/scripts/install-thv.sh @@ -33,8 +33,8 @@ fi # Temporary fix for early exit if container runtime isn't found -RELEASE_VERSION="v0.2.9" -RELEASE_TARBALL="https://github.com/stacklok/toolhive/releases/download/v0.2.9/toolhive_0.2.9_linux_amd64.tar.gz" +RELEASE_VERSION="v0.2.17" +RELEASE_TARBALL="https://github.com/stacklok/toolhive/releases/download/v0.2.17/toolhive_0.2.17_linux_amd64.tar.gz" # Determine installation location based on write permissions if [[ -w "/usr/local/bin" ]]; then