Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions lib/foojay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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({
Expand Down