diff --git a/features/src/llvm/devcontainer-feature.json b/features/src/llvm/devcontainer-feature.json index 35f7c85b..0745dc7c 100644 --- a/features/src/llvm/devcontainer-feature.json +++ b/features/src/llvm/devcontainer-feature.json @@ -1,7 +1,7 @@ { "name": "LLVM compilers and tools", "id": "llvm", - "version": "24.8.1", + "version": "24.8.2", "description": "A feature to install LLVM compilers and tools", "options": { "version": { diff --git a/features/src/llvm/llvm.sh b/features/src/llvm/llvm.sh index 58d79654..2fe420d0 100755 --- a/features/src/llvm/llvm.sh +++ b/features/src/llvm/llvm.sh @@ -128,6 +128,11 @@ LLVM_VERSION_STRING=${LLVM_VERSION_PATTERNS[$LLVM_VERSION]} # join the repository name if [[ -n "${CODENAME}" ]]; then + + if ! curl -fsSL "https://apt.llvm.org/${CODENAME}/dists/llvm-toolchain${LINKNAME}${LLVM_VERSION_STRING}/Release" >/dev/null 2>&1; then + LLVM_VERSION_STRING=""; + fi + REPO_NAME="deb ${BASE_URL}/${CODENAME}/ llvm-toolchain${LINKNAME}${LLVM_VERSION_STRING} main" # check if the repository exists for the distro and version