From 91e70426a9b2aa064f3f349f493e3dc0d59b6795 Mon Sep 17 00:00:00 2001 From: Pawan Pinjarkar Date: Tue, 2 Jun 2026 13:51:29 -0400 Subject: [PATCH] NO_ISSUE: Add -L flag to curl to follow redirects automatically The GitHub API for `/repos/containers/skopeo/releases/latest` returns a 301 redirect to the canonical repository URL, causing the JSON parsing to fail with: KeyError: 'tag_name' The redirect response contains: { "message": "Moved Permanently", "url": "https://api.github.com/repositories/53356367/releases/latest" } --- hack/install-skopeo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/install-skopeo.sh b/hack/install-skopeo.sh index 6a757e55b7..f94d8598f2 100755 --- a/hack/install-skopeo.sh +++ b/hack/install-skopeo.sh @@ -32,7 +32,7 @@ install_skopeo() { fi # Get the most recent tagged version of skopeo. - skopeo_version="$(curl -s https://api.github.com/repos/containers/skopeo/releases/latest | python3 -c 'import sys, json; print(json.load(sys.stdin)["tag_name"])')" + skopeo_version="$(curl -sL https://api.github.com/repos/containers/skopeo/releases/latest | python3 -c 'import sys, json; print(json.load(sys.stdin)["tag_name"])')" echo "Installing skopeo $skopeo_version from source"