From 668cede86078b3e444557a6e0781d464dcb424f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Godoi?= Date: Sun, 18 Jan 2026 17:32:41 -0300 Subject: [PATCH] Fixing arch override when windows x64 --- lib/foojay.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/foojay.lua b/lib/foojay.lua index 409a3a3..ac0b541 100644 --- a/lib/foojay.lua +++ b/lib/foojay.lua @@ -24,6 +24,11 @@ foojay.fetchtJdkList= function (distribution, version) local os = RUNTIME.osType local arch = RUNTIME.archType + -- Convert arm64 to aarch64 for foojay API compatibility + if arch == "arm64" then + arch = "aarch64" + end + if os == "darwin" then os = "macos" end @@ -41,12 +46,6 @@ foojay.fetchtJdkList= function (distribution, version) lib_c_type = detect_lib_c_type() end - -- Convert arm64 to aarch64 for foojay API compatibility - local arch = RUNTIME.archType - if arch == "arm64" then - arch = "aarch64" - end - local reqUrl = URL:format(version, distribution, arch, archive_type, os, lib_c_type) local resp, err = http.get({