From 6a64e5126727214395a02b61791aec2daa0b4de8 Mon Sep 17 00:00:00 2001 From: thespad Date: Fri, 15 May 2026 04:54:34 +0000 Subject: [PATCH] FIx commit sha fetch for clashing tags --- Dockerfile | 2 +- Dockerfile.aarch64 | 2 +- Dockerfile.riscv64 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 793e88d..bfaa8a3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,7 +64,7 @@ RUN \ make check && \ make install && \ echo "**** Patch Sab commit into version.py ****" && \ - SAB_COMMIT_SHA=$(curl -s "https://api.github.com/repos/sabnzbd/sabnzbd/git/matching-refs/tags/${SABNZBD_VERSION}" | jq -r '.[].object.sha') && \ + SAB_COMMIT_SHA=$(curl -s "https://api.github.com/repos/sabnzbd/sabnzbd/git/ref/tags/${SABNZBD_VERSION}" | jq -r '.object.sha') && \ sed -i "s/__baseline__ .*/__baseline__ = \"${SAB_COMMIT_SHA}\"/" /app/sabnzbd/sabnzbd/version.py && \ printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \ echo "**** cleanup ****" && \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index b7ec933..21b23e3 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -64,7 +64,7 @@ RUN \ make check && \ make install && \ echo "**** Patch Sab commit into version.py ****" && \ - SAB_COMMIT_SHA=$(curl -s "https://api.github.com/repos/sabnzbd/sabnzbd/git/matching-refs/tags/${SABNZBD_VERSION}" | jq -r '.[].object.sha') && \ + SAB_COMMIT_SHA=$(curl -s "https://api.github.com/repos/sabnzbd/sabnzbd/git/ref/tags/${SABNZBD_VERSION}" | jq -r '.object.sha') && \ sed -i "s/__baseline__ .*/__baseline__ = \"${SAB_COMMIT_SHA}\"/" /app/sabnzbd/sabnzbd/version.py && \ printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \ echo "**** cleanup ****" && \ diff --git a/Dockerfile.riscv64 b/Dockerfile.riscv64 index 10bff82..bb7d30e 100644 --- a/Dockerfile.riscv64 +++ b/Dockerfile.riscv64 @@ -64,7 +64,7 @@ RUN \ make check && \ make install && \ echo "**** Patch Sab commit into version.py ****" && \ - SAB_COMMIT_SHA=$(curl -s "https://api.github.com/repos/sabnzbd/sabnzbd/git/matching-refs/tags/${SABNZBD_VERSION}" | jq -r '.[].object.sha') && \ + SAB_COMMIT_SHA=$(curl -s "https://api.github.com/repos/sabnzbd/sabnzbd/git/ref/tags/${SABNZBD_VERSION}" | jq -r '.object.sha') && \ sed -i "s/__baseline__ .*/__baseline__ = \"${SAB_COMMIT_SHA}\"/" /app/sabnzbd/sabnzbd/version.py && \ printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \ echo "**** cleanup ****" && \