From e5dbad837dd82cb96e79a1844cb62e1cbd64743b Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Wed, 4 Jun 2025 02:35:41 +0300 Subject: [PATCH 1/2] add specfic tag --- lib/utils.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/utils.bash b/lib/utils.bash index cc716cb..24d74aa 100644 --- a/lib/utils.bash +++ b/lib/utils.bash @@ -6,7 +6,8 @@ set -euo pipefail ASDF_CLANG_TOOLS_MACOS_DEQUARANTINE=${ASDF_CLANG_TOOLS_MACOS_DEQUARANTINE:-0} ASDF_CLANG_TOOLS_LINUX_IGNORE_ARCH=${ASDF_CLANG_TOOLS_LINUX_IGNORE_ARCH:-0} -GH_REPO="cpp-linter/clang-tools-static-binaries" +GH_REPO="cpp-linter/clang-tools-static-binaries/" +GH_REPO_TAG="master-b35c5633" PLUGIN_NAME="clang-tools" USE_KERNEL= USE_ARCH= @@ -47,7 +48,7 @@ sort_versions() { fetch_all_assets() { curl -s -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/${GH_REPO}/releases | + https://api.github.com/repos/${GH_REPO}/releases/tag/${GH_REPO_TAG} | jq -r '.[0].assets[] | "\(.name) \(.browser_download_url)"' } From 3f2cdfed3d512bace11bf3cd85728c166b3c2ca7 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Tue, 17 Jun 2025 21:45:09 +0200 Subject: [PATCH 2/2] fix: try to fix the ci failure --- lib/utils.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.bash b/lib/utils.bash index 24d74aa..9ece4af 100644 --- a/lib/utils.bash +++ b/lib/utils.bash @@ -49,7 +49,7 @@ sort_versions() { fetch_all_assets() { curl -s -H "Accept: application/vnd.github.v3+json" \ https://api.github.com/repos/${GH_REPO}/releases/tag/${GH_REPO_TAG} | - jq -r '.[0].assets[] | "\(.name) \(.browser_download_url)"' + jq -r '.assets[] | "\(.name) \(.browser_download_url)"' } validate_platform() {