From 88920a2a1a017cb1e64e70c4a336b283f9386d90 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Tue, 14 Sep 2021 07:48:57 -0500 Subject: [PATCH] fix: fix llvm 5.0.0 on ubuntu --- src/llvm/llvm.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/llvm/llvm.ts b/src/llvm/llvm.ts index b193cf00..53753a36 100644 --- a/src/llvm/llvm.ts +++ b/src/llvm/llvm.ts @@ -4,7 +4,6 @@ import * as io from "@actions/io" import * as tc from "@actions/tool-cache" import * as path from "path" import semverLte from "semver/functions/lte" -import semverLt from "semver/functions/lt" import { isValidUrl } from "../utils/http/validate_url" //================================================ @@ -189,7 +188,7 @@ function getLinuxUrl(versionGiven: string): string { } const prefix = "clang+llvm-" - const suffix = semverLt(version, "6.0.0") ? `linux-x86_64${ubuntu}.tar.xz` : `-x86_64-linux-gnu${ubuntu}.tar.xz` + const suffix = version === "5.0.0" ? `-linux-x86_64${ubuntu}.tar.xz` : `-x86_64-linux-gnu${ubuntu}.tar.xz` if (semverLte(version, "9.0.1")) { return getReleaseUrl(version, prefix, suffix) } else {